From e18865ecd78d696d379a4ebf65ed6f3dd14d7e23 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 19 Nov 2008 11:51:21 +0000 Subject: [PATCH] add WX_ASSERT_EQUAL_MESSAGE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/cppunit.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/wx/cppunit.h b/include/wx/cppunit.h index 5d5e7406bf..59f79b831d 100644 --- a/include/wx/cppunit.h +++ b/include/wx/cppunit.h @@ -160,6 +160,10 @@ CPPUNIT_NS_END #define WX_ASSERT_MESSAGE(msg, cond) \ CPPUNIT_ASSERT_MESSAGE(std::string(wxString::Format msg .mb_str()), (cond)) +#define WX_ASSERT_EQUAL_MESSAGE(msg, expected, actual) \ + CPPUNIT_ASSERT_EQUAL_MESSAGE(std::string(wxString::Format msg .mb_str()), \ + (expected), (actual)) + /////////////////////////////////////////////////////////////////////////////// // define stream inserter for wxString if it's not defined in the main library, // we need it to output the test failures involving wxString -- 2.50.0