From: Václav Slavík Date: Mon, 20 Aug 2007 12:30:06 +0000 (+0000) Subject: Vadim's new test broke subsequent asserts, fixed X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/74374c9ecd2019694b2e7fbe1c82ba04d680ee3d Vadim's new test broke subsequent asserts, fixed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/strings/stdstrings.cpp b/tests/strings/stdstrings.cpp index 99355fe751..0b09e6ffef 100644 --- a/tests/strings/stdstrings.cpp +++ b/tests/strings/stdstrings.cpp @@ -176,9 +176,6 @@ void StdStringTestCase::StdAssign() CPPUNIT_ASSERT( s5 == _T("aaa") ); CPPUNIT_ASSERT( s6 == _T("ef") ); - s1.assign(s1, 1, 1); - WX_ASSERT_STR_EQUAL("e", s1); - const char *pc = s1.c_str(); s7.assign(pc, pc + 2); WX_ASSERT_STR_EQUAL( "de", s7 ); @@ -186,6 +183,9 @@ void StdStringTestCase::StdAssign() const wchar_t *pw = s1.c_str(); s8.assign(pw + 2, pw + 3); WX_ASSERT_STR_EQUAL( "f", s8 ); + + s1.assign(s1, 1, 1); + WX_ASSERT_STR_EQUAL("e", s1); } void StdStringTestCase::StdCompare()