X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bdb40fa63eafd1b6b0b25e2d8142bff75a92421d..fd5907ffd9b0785bb6eb6f2546101623b23827c5:/tests/strings/stdstrings.cpp?ds=sidebyside diff --git a/tests/strings/stdstrings.cpp b/tests/strings/stdstrings.cpp index e4d19cc01d..06d5be2814 100644 --- a/tests/strings/stdstrings.cpp +++ b/tests/strings/stdstrings.cpp @@ -515,10 +515,12 @@ void StdStringTestCase::StdResize() CPPUNIT_ASSERT_EQUAL( wxT("abcABCdefDEF "), s3 ); CPPUNIT_ASSERT_EQUAL( wxT("abcABCdefDEFWW"), s4 ); +#if wxUSE_UNICODE wxString s = wxString::FromUTF8("\xd0\x9f\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82"); s.resize(3); CPPUNIT_ASSERT_EQUAL( wxString::FromUTF8("\xd0\x9f\xd1\x80\xd0\xb8"), s); +#endif // wxUSE_UNICODE } void StdStringTestCase::StdRiter()