]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed broken wxCStrData and operator?: check
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 24 Apr 2007 12:35:30 +0000 (12:35 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 24 Apr 2007 12:35:30 +0000 (12:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/strings/strings.cpp

index 778834b91d14fb339afb8ad52116eef138b0eb45..e66615565bb6c11b971928f8ce8b7d0942758d99 100644 (file)
@@ -683,9 +683,9 @@ void StringTestCase::DoCStrDataTernaryOperator(bool cond)
 
     const wchar_t *wcStr = L"foo";
     CPPUNIT_ASSERT( CheckStr(s, (cond ? s.c_str() : wcStr)) );
-    CPPUNIT_ASSERT( CheckStr(s, (cond ? s.c_str() : L"bar")) );
+    CPPUNIT_ASSERT( CheckStr(s, (cond ? s.c_str() : L"foo")) );
     CPPUNIT_ASSERT( CheckStr(s, (cond ? wcStr : s.c_str())) );
-    CPPUNIT_ASSERT( CheckStr(s, (cond ? L"bar" : s.c_str())) );
+    CPPUNIT_ASSERT( CheckStr(s, (cond ? L"foo" : s.c_str())) );
 
     const char *mbStr = "foo";
     CPPUNIT_ASSERT( CheckStr(s, (cond ? s.c_str() : mbStr)) );