// Licence: wxWidgets licence
///////////////////////////////////////////////////////////////////////////////
-#include "wx/wxprec.h"
+#include "testprec.h"
#ifdef __BORLANDC__
# pragma hdrstop
#if wxUSE_REGEX
#include "wx/regex.h"
-#include "wx/cppunit.h"
#include "wx/tokenzr.h"
#include <string>
-using namespace std;
-using namespace CppUnit;
+using CppUnit::Test;
+using CppUnit::TestCase;
+using CppUnit::TestSuite;
+using std::string;
///////////////////////////////////////////////////////////////////////////////
m_expected(expected),
m_count(count),
m_flags(flags)
- { }
+ { }
protected:
void 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);
}