From 34e9c2d53e79853a04d5bd9e2d983875d43f8d89 Mon Sep 17 00:00:00 2001 From: Ulrich Telle Date: Thu, 18 Aug 2022 19:16:54 +0200 Subject: [PATCH] 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. --- tests/intl/intltest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/intl/intltest.cpp b/tests/intl/intltest.cpp index 956f729a96..ccc12176cf 100644 --- a/tests/intl/intltest.cpp +++ b/tests/intl/intltest.cpp @@ -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.