diff options
| author | Grant Ammons <gammons@gmail.com> | 2017-08-15 19:32:36 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-15 19:32:36 -0600 |
| commit | 620a9f3aff090063f79285fb20437a62ce089a4e (patch) | |
| tree | 50c57801c9f1edb7ad1b80aa314c5c340f97d9f3 /todolist/util_test.go | |
| parent | 9f62f82025e4dd7fa3a0dfc50bb94704209e608c (diff) | |
| parent | b1607ce3bfaf54936338d8639087dee52f7d7bc2 (diff) | |
Merge pull request #85 from stuartskelton/multiple_ids_for_actions
Allow for ranged ids in some commands
Diffstat (limited to 'todolist/util_test.go')
| -rw-r--r-- | todolist/util_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/todolist/util_test.go b/todolist/util_test.go new file mode 100644 index 0000000..40ecb54 --- /dev/null +++ b/todolist/util_test.go @@ -0,0 +1,13 @@ +package todolist + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestPluralize(t *testing.T) { + assert := assert.New(t) + assert.Equal("todo", pluralize(1, "todo", "todos")) + assert.Equal("todos", pluralize(2, "todo", "todos")) +} |
