Hardcode diacritics instead of generating during runtime (#1827)

* Hardcode diacritics instead of generating during runtime

* Remove redundant test
This commit is contained in:
David Pedersen authored and GitHub committed 2024-11-03 18:21:33 +11:00
1 parent 1b1628c378
commit 4408f37a9b
2 files changed
+37 -43

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ func TestRemoveDiacritics(t *testing.T) {
expStr := "Prilis zlutoucky kun priserne upel dabelske ody"
checkRemoveDiacritics(testStr, expStr, t)
// other accents (non comlete, but all I founded)
// other accents (non complete, but all I found)
testStr = "áéíóúýčďěňřšťžůåøĉĝĥĵŝŭšžõäöüàâçéèêëîïôùûüÿžščćđáéíóúąęėįųūčšžāēīūčšžļķņģáéíóúöüőűäöüëïąćęłńóśźżáàãâçéêíóõôăâîșțáäčďéíĺľňóôŕšťúýžáéíñóúüåäöâçîşûğăâđêôơưáàãảạ"
expStr = "aeiouycdenrstzuaocghjsuszoaouaaceeeeiiouuuyzsccdaeiouaeeiuucszaeiucszlkngaeiouououaoueiacelnoszzaaaaceeioooaaistaacdeillnoorstuyzaeinouuaaoacisugaadeoouaaaaa"
checkRemoveDiacritics(testStr, expStr, t)