codies/internal/words/static/static_test.go

22 lines
505 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)
2021-10-03 03:27:38 +00:00
testLen(t, "Expanded", static.Undercover, 673)
2020-06-06 21:01:45 +00:00
}