From: Václav Slavík Date: Mon, 2 Apr 2007 17:42:20 +0000 (+0000) Subject: some more operator?! tests X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/92258cc146404eb9ddcbfbd2d8d76844ec3d657c some more operator?! tests git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/strings/strings.cpp b/tests/strings/strings.cpp index 7198b0cb7c..c5eee4699c 100644 --- a/tests/strings/strings.cpp +++ b/tests/strings/strings.cpp @@ -694,6 +694,10 @@ void StringTestCase::DoCStrDataTernaryOperator(bool cond) CPPUNIT_ASSERT( CheckStr(s, (cond ? mbStr : s.c_str())) ); CPPUNIT_ASSERT( CheckStr(s, (cond ? "foo" : s.c_str())) ); #endif + + wxString empty(""); + CPPUNIT_ASSERT( CheckStr(empty, (cond ? empty.c_str() : wxEmptyString)) ); + CPPUNIT_ASSERT( CheckStr(empty, (cond ? wxEmptyString : empty.c_str())) ); } bool CheckStrChar(const wxString& expected, char *s)