X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fcca30c7e6560839d43a3438dacb08c27fd7e8c0..4f2511d706e5274a34e1521e11c1b95fed735b42:/tests/testprec.h diff --git a/tests/testprec.h b/tests/testprec.h index 1ec2054d6b..b1799321f1 100644 --- a/tests/testprec.h +++ b/tests/testprec.h @@ -1,32 +1,4 @@ #include "wx/wxprec.h" - -#include - -// need this to be able to use CPPUNIT_ASSERT_EQUAL with wxString objects -// -// NB: at least for VC7.1 the specialization must be done before cppunit -// headers inclusion as otherwise it's just ignored! -namespace CppUnit -{ - -template struct assertion_traits; - -template <> -struct assertion_traits -{ - static bool equal(const wxString& s1, const wxString& s2) - { - return s1 == s2; - } - - static std::string toString(const wxString& s) - { - return std::string(s.mb_str()); - } -}; - -} // namespace CppUnit - #include "wx/cppunit.h" // define wxHAVE_U_ESCAPE if the compiler supports \uxxxx character constants @@ -34,7 +6,3 @@ struct assertion_traits (defined(__GNUC__) && (__GNUC__ >= 3)) #define wxHAVE_U_ESCAPE #endif - -#define CPPUNIT_ASSERT_STR_EQUAL(s1, s2) \ - CPPUNIT_ASSERT_EQUAL( wxString(s1), wxString(s2) ) -