]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/cppunit.h
fix MDI child sizing, which was working more or less by accident before I broke it...
[wxWidgets.git] / include / wx / cppunit.h
index 8bbc99f7f51a9284014bb0540beb7ba518d2d069..38fcfee82af406d9bd5451f61b6f7a264893031e 100644 (file)
 #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();