From a9dce709f5e576bbc47aa24af10266568a9149be Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 5 Apr 2007 21:54:29 +0000 Subject: [PATCH] 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 --- include/wx/cppunit.h | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.50.0