Attempt to test whether wxLocale breaks formatting Unicode strings

This commit is contained in:
Lauri Nurmi 2023-04-16 00:22:18 +03:00
parent fb17a5ac38
commit aefd1e41c7

View file

@ -106,6 +106,15 @@ TEST_CASE("StringFormatUnicode", "[wxString]")
wxString expected(fmt);
expected.Replace("%i", "1");
CHECK( s == expected );
// Repeat exactly the same after creating a wxLocale
// object, and ensure formatting Unicode strings still works.
wxLocale l(wxLANGUAGE_DEFAULT);
wxString s2 = wxString::Format(fmt, 1, 1);
wxString expected2(fmt);
expected2.Replace("%i", "1");
CHECK( s2 == expected2 );
}
TEST_CASE("StringConstructors", "[wxString]")