mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-25 17:15:45 +08:00
Attempt to test whether wxLocale breaks formatting Unicode strings
This commit is contained in:
@@ -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]")
|
||||
|
||||
Reference in New Issue
Block a user