From: Vadim Zeitlin Date: Thu, 5 Apr 2007 21:54:29 +0000 (+0000) Subject: added WX_ASSERT_STR_EQUAL helper macro for comparing wxStrings with C strings X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a9dce709f5e576bbc47aa24af10266568a9149be?ds=inline 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 --- diff --git a/include/wx/cppunit.h b/include/wx/cppunit.h index 6698891991..38fcfee82a 100644 --- a/include/wx/cppunit.h +++ b/include/wx/cppunit.h @@ -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