style(wordle): gofmt lookup test table

This commit is contained in:
2026-08-25 15:54:12 +07:00
parent 12d7b4f5ee
commit 6baa2bfe72
+8 -8
View File
@@ -4,14 +4,14 @@ import "testing"
func TestNormalizeWord(t *testing.T) {
cases := map[string]string{
"": "",
"crane": "crane",
"CRANE": "crane",
" crane ": "crane",
"c-r-a-n-e": "crane",
"héllo": "hllo", // strips non a-z (including the é and accented o-equivalent)
"!@#$%": "",
"42 crane": "crane",
"": "",
"crane": "crane",
"CRANE": "crane",
" crane ": "crane",
"c-r-a-n-e": "crane",
"héllo": "hllo", // strips non a-z (including the é and accented o-equivalent)
"!@#$%": "",
"42 crane": "crane",
}
for in, want := range cases {
if got := normalizeWord(in); got != want {