Allow Collators to have their language specified, and specify it for tests.
[dcpomatic.git] / test / collator_test.cc
index e88d71b06d27a0510b0f534f8ee77746270feefe..477b3747f0b2b90cfb99f33cde2e3720c5212c0c 100644 (file)
@@ -25,7 +25,7 @@
 
 BOOST_AUTO_TEST_CASE(collator_compare_works_and_ignores_case)
 {
-       Collator collator;
+       Collator collator("en");
 
        BOOST_CHECK_EQUAL(collator.compare("So often YOU won't even notice", "SO OFTEN you won't even NOTiCE"), 0);
        BOOST_CHECK_EQUAL(collator.compare("So often YOU won't even notice", "SO OFTEN you won't even see"), -1);
@@ -35,7 +35,7 @@ BOOST_AUTO_TEST_CASE(collator_compare_works_and_ignores_case)
 
 BOOST_AUTO_TEST_CASE(collator_search_works_and_ignores_case)
 {
-       Collator collator;
+       Collator collator("en");
 
        BOOST_CHECK(collator.find("outh", "With filthy mouths, and bad attitudes"));
        BOOST_CHECK(collator.find("with", "With filthy mouths, and bad attitudes"));