Add test case for locale tag with script part

This test checks that a locale tag that includes an explicit script part (like `sr-Latn-RS`) is correctly parsed and located in the internal language database.
This commit is contained in:
Ulrich Telle
2022-08-18 19:16:54 +02:00
committed by GitHub
parent 95619e95f2
commit 34e9c2d53e
+2
View File
@@ -415,6 +415,8 @@ TEST_CASE("wxUILocale::FindLanguageInfo", "[uilocale]")
CheckFindLanguage("English", "en");
CheckFindLanguage("English_United States", "en_US");
CheckFindLanguage("English_United States.utf8", "en_US");
// Test tag that includes an explicit script
CheckFindLanguage("sr-Latn-RS", "sr_RS@latin");
}
// Test which can be used to check if the given locale tag is supported.