X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Futil_test.cc;h=1e13efa82f456959d4cf538c70dd809fbf7c657f;hb=refs%2Ftags%2Fv2.13.133;hp=d8cb61fdc30677d2208e52ca232554f60bd1762b;hpb=9af2f52c16ceb198367c801713eb4f5c0435f81e;p=dcpomatic.git diff --git a/test/util_test.cc b/test/util_test.cc index d8cb61fdc..1e13efa82 100644 --- a/test/util_test.cc +++ b/test/util_test.cc @@ -119,3 +119,12 @@ BOOST_AUTO_TEST_CASE (swaroop_chain_test) BOOST_CHECK (cc->root_to_leaf() == back->root_to_leaf()); } #endif + +BOOST_AUTO_TEST_CASE (careful_string_filter_test) +{ + BOOST_CHECK_EQUAL ("hello_world", careful_string_filter("hello_world")); + BOOST_CHECK_EQUAL ("hello_world", careful_string_filter("héllo_world")); + 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_à")); +}