1 /* 2 * Copyright 2024, Andrew Lindesay <apl@lindesay.co.nz> 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef LOCALE_UTILS_TEST_H 6 #define LOCALE_UTILS_TEST_H 7 8 9 #include <Message.h> 10 11 #include <TestCase.h> 12 #include <TestSuite.h> 13 14 15 class LocaleUtilsTest : public CppUnit::TestCase 16 { 17 public: 18 LocaleUtilsTest(); 19 virtual ~LocaleUtilsTest(); 20 21 void TestLanguageIsBeforeFalseAfter(); 22 void TestLanguageIsBeforeFalseEqual(); 23 void TestLanguageIsBeforeTrueBefore(); 24 void TestLanguageSorting(); 25 26 void TestDeriveDefaultLanguageCodeOnly(); 27 void TestDeriveDefaultLanguageSystemDefaultMoreSpecific(); 28 void TestDeriveDefaultLanguageSystemDefaultLessSpecific(); 29 30 static void AddTests(BTestSuite& suite); 31 32 }; 33 34 35 #endif // LOCALE_UTILS_TEST_H 36