fork/gdu

git clone https://git.julia.blue/fork/gdu

cosmolifeat: move items to XDG trash with D key (#12) (#608)9ca5c60

master
558 B19 linesraw
1package tui
2
3import (
4	"testing"
5
6	"github.com/stretchr/testify/assert"
7)
8
9func TestDeleteActionVerbAndActing(t *testing.T) {
10	assert.Equal(t, "delete", ActionDelete.Verb())
11	assert.Equal(t, "empty", ActionEmpty.Verb())
12	assert.Equal(t, "move to trash", ActionMoveToTrash.Verb())
13	assert.Equal(t, "delete", DeleteAction(99).Verb())
14
15	assert.Equal(t, "deleting", ActionDelete.Acting())
16	assert.Equal(t, "emptying", ActionEmpty.Acting())
17	assert.Equal(t, "moving to trash", ActionMoveToTrash.Acting())
18	assert.Equal(t, "deleting", DeleteAction(99).Acting())
19}