]> git.saurik.com Git - wxWidgets.git/commitdiff
add yet another overload of assertEquals to fix another compilation error due to...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Nov 2008 02:34:12 +0000 (02:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 2 Nov 2008 02:34:12 +0000 (02:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cppunit.h

index e9cfbdfd9f47d08cd66c2e36f71b7671bff5c2f1..d362155e73a9c138a3293cac5a8a46d1d08cd41b 100644 (file)
@@ -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