fixed broken wxCStrData and operator?: check

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2007-04-24 12:35:30 +00:00
parent c7c94fa73e
commit 9ffb659a29

View File

@@ -683,9 +683,9 @@ void StringTestCase::DoCStrDataTernaryOperator(bool cond)
const wchar_t *wcStr = L"foo"; const wchar_t *wcStr = L"foo";
CPPUNIT_ASSERT( CheckStr(s, (cond ? s.c_str() : wcStr)) ); 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 ? 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"; const char *mbStr = "foo";
CPPUNIT_ASSERT( CheckStr(s, (cond ? s.c_str() : mbStr)) ); CPPUNIT_ASSERT( CheckStr(s, (cond ? s.c_str() : mbStr)) );