X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef0aeb729dd02e78d8daf56a9380a1cccf317fe5..0bf36922c8a60f19dccc3889c15b281fc94d69c5:/include/wx/cppunit.h?ds=sidebyside 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