Test the character a selector cannot spell

This commit is contained in:
2026-10-05 21:33:30 +02:00
committed by Lillem4n
parent 880621f6bb
commit 05d9fcd8c1
2 changed files with 8 additions and 138 deletions
+8
View File
@@ -49,3 +49,11 @@ func TestCheckSegmentsRefusesAnEmptySegment(t *testing.T) {
t.Errorf("CheckSegments = %v, want nil", err)
}
}
func TestUnspellableInSelector(t *testing.T) {
for s, want := range map[string]string{"SE": "", "a|b": "|", `x"y[`: `"`, "": ""} {
if got := UnspellableInSelector(s); got != want {
t.Errorf("UnspellableInSelector(%q) = %q, want %q", s, got, want)
}
}
}