package shadow import "testing" func TestFromCroatian(t *testing.T) { tests := []struct { name string in string want string }{ {"simple vowels", "aeiou", "AEIOU"}, {"basic word", "pas", "PAS"}, {"č", "čovjek", "ЧOVYEK"}, {"š", "šuma", "ΣUMA"}, {"ž", "život", "Ζ̌IVOT"}, {"ć", "ćevap", "ЧEVAP"}, {"đ", "đak", "ЏAK"}, {"j maps to Y", "ja", "YA"}, {"digraph dž", "džep", "ЏEP"}, {"digraph lj", "ljubav", "LYUBAV"}, {"digraph nj", "njega", "NYEGA"}, {"c as TS", "car", "TSAR"}, {"mixed case", "Zagreb", "ZAGREB"}, {"digits passthrough", "2025", "2025"}, {"spaces", "dobar dan", "DOBAR DAN"}, {"full sentence", "Što je novo?", "ΣTO YE NOVO?"}, {"prst (syllabic r)", "prst", "PRST"}, {"krk", "Krk", "KRK"}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { got := FromCroatian(tt.in) if got != tt.want { t.Errorf("FromCroatian(%q) = %q, want %q", tt.in, got, tt.want) } }) } }