X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c33230b1c14f47b0f57e38a5c8133cf253b0e2a4..b2b98dfd4bdc302ee2e3f6a2112fb103d1655174:/tests/regex/wxregextest.cpp?ds=inline diff --git a/tests/regex/wxregextest.cpp b/tests/regex/wxregextest.cpp index 6e798a1821..1d9c75acc8 100644 --- a/tests/regex/wxregextest.cpp +++ b/tests/regex/wxregextest.cpp @@ -7,7 +7,7 @@ // Licence: wxWidgets licence /////////////////////////////////////////////////////////////////////////////// -#include "wx/wxprec.h" +#include "testprec.h" #ifdef __BORLANDC__ # pragma hdrstop @@ -20,12 +20,13 @@ #if wxUSE_REGEX #include "wx/regex.h" -#include "wx/cppunit.h" #include "wx/tokenzr.h" #include -using namespace std; -using namespace CppUnit; +using CppUnit::Test; +using CppUnit::TestCase; +using CppUnit::TestSuite; +using std::string; /////////////////////////////////////////////////////////////////////////////// @@ -143,7 +144,7 @@ public: m_expected(expected), m_count(count), m_flags(flags) - { } + { } protected: void runTest(); @@ -168,7 +169,7 @@ void RegExReplaceTestCase::runTest() msgstr.Printf(_T("returns '%s' (expected '%s')"), text.c_str(), m_expected.c_str()); CPPUNIT_ASSERT_MESSAGE((const char*)msgstr.mb_str(), text == m_expected); - msgstr.Printf(_T("matches %d times (expected %d)"), nRepl, m_count); + msgstr.Printf(_T("matches %d times (expected %d)"), (int)nRepl, (int)m_count); CPPUNIT_ASSERT_MESSAGE((const char*)msgstr.mb_str(), nRepl == m_count); }