added WX_ASSERT_STR_EQUAL helper macro for comparing wxStrings with C strings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-04-05 21:54:29 +00:00
parent 5064e6eff3
commit a9dce709f5

View File

@@ -77,6 +77,9 @@
#define WXTEST_FAIL_WITH_CONDITION(suiteName, Condition, testMethod) \
WXTEST_ANY_WITH_CONDITION(suiteName, Condition, testMethod, CPPUNIT_TEST_FAIL(testMethod))
// Use this macro to compare a wxString with a literal string.
#define WX_ASSERT_STR_EQUAL(p, s) CPPUNIT_ASSERT_EQUAL(wxString(p), s)
///////////////////////////////////////////////////////////////////////////////
// stream inserter for wxString