summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-02-03 22:02:18 +0100
committerCarl Hetherington <cth@carlh.net>2021-02-03 22:02:18 +0100
commitb81f1396528f01bead8c1faf128a277820980025 (patch)
treec61a2ef4936ecc3b2c83430a3a334884488a79fe /test
parent369821c41e62d4cce506cd4206f9db0d91b4f643 (diff)
Use icu to remove diacritics from strings.
This replaces some ad-hoc code and extends it to work with more characters (#1904).
Diffstat (limited to 'test')
-rw-r--r--test/util_test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/util_test.cc b/test/util_test.cc
index 56de057a6..a46337ab7 100644
--- a/test/util_test.cc
+++ b/test/util_test.cc
@@ -113,6 +113,7 @@ BOOST_AUTO_TEST_CASE (careful_string_filter_test)
BOOST_CHECK_EQUAL ("hello_world", careful_string_filter("héllo_wörld"));
BOOST_CHECK_EQUAL ("hello_world", careful_string_filter("héllo_wörld"));
BOOST_CHECK_EQUAL ("hello_world_a", careful_string_filter("héllo_wörld_à"));
+ BOOST_CHECK_EQUAL ("hello_world_CcGgIOoSsUu", careful_string_filter("hello_world_ÇçĞğİÖöŞşÜü"));
}
static list<float> progress_values;