aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/util_test.go
blob: 40ecb54817f35b9a76324587d0030ceea6c94adb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"))
}