X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2c94045365a17840b71aaf3ce2f08512e9474eeb..4e0a055757f928dce8c53b8e4cb60a699ab43e07:/include/wx/cppunit.h diff --git a/include/wx/cppunit.h b/include/wx/cppunit.h index 8bbc99f7f5..38fcfee82a 100644 --- a/include/wx/cppunit.h +++ b/include/wx/cppunit.h @@ -77,11 +77,16 @@ #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 // +#include "wx/string.h" + inline std::ostream& operator<<(std::ostream& o, const wxString& s) { return o << s.mb_str();