From 6fc905e0e141a49cf4738d5fc6c598a46e504263 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 2 Nov 2008 02:34:12 +0000 Subject: [PATCH] add yet another overload of assertEquals to fix another compilation error due to using different types inside CPPUNIT_ASSERT_EQUAL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/cppunit.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/wx/cppunit.h b/include/wx/cppunit.h index e9cfbdfd9f..d362155e73 100644 --- a/include/wx/cppunit.h +++ b/include/wx/cppunit.h @@ -137,6 +137,16 @@ assertEquals(int expected, assertEquals((unsigned short)expected, actual, sourceLine, message); } +// this one is useful for wxTextCtrl functions which return longs +inline void +assertEquals(int expected, + long actual, + CppUnit::SourceLine sourceLine, + const std::string& message) +{ + assertEquals((long)expected, actual, sourceLine, message); +} + CPPUNIT_NS_END // Use this macro to compare a wxArrayString with the pipe-separated elements -- 2.45.2