1package static_test
2
3import (
4 "testing"
5
6 "github.com/zikaeroh/codies/internal/words"
7 "github.com/zikaeroh/codies/internal/words/static"
8 "gotest.tools/v3/assert"
9)
10
11func TestLen(t *testing.T) {
12 testLen := func(t *testing.T, name string, list words.List, want int) {
13 t.Helper()
14 assert.Equal(t, list.Len(), want)
15 }
16
17 testLen(t, "Default", static.Default, 400)
18 testLen(t, "Duet", static.Duet, 400)
19 testLen(t, "Undercover", static.Undercover, 390)
20 testLen(t, "Expanded", static.Undercover, 673)
21}