codies/internal/words/static/static_test.go

21 lines
457 B
Go
Raw Normal View History

2020-06-06 21:01:45 +00:00
package static_test
import (
"testing"
"github.com/zikaeroh/codies/internal/words"
"github.com/zikaeroh/codies/internal/words/static"
"gotest.tools/v3/assert"
)
func TestLen(t *testing.T) {
testLen := func(t *testing.T, name string, list words.List, want int) {
t.Helper()
assert.Equal(t, list.Len(), want)
}
testLen(t, "Default", static.Default, 400)
testLen(t, "Duet", static.Duet, 400)
testLen(t, "Undercover", static.Undercover, 390)
}