X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8899b155a1e4fa5f4b90e1f3bebe28088ea46bc9..3c01c5951189e13b8b4a5d7b288b54d4a57a30f8:/tests/regex/wxregextest.cpp?ds=sidebyside diff --git a/tests/regex/wxregextest.cpp b/tests/regex/wxregextest.cpp index 7d7b3085b9..38286da82c 100644 --- a/tests/regex/wxregextest.cpp +++ b/tests/regex/wxregextest.cpp @@ -169,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); } @@ -327,7 +327,7 @@ wxString wxRegExTestSuite::FlagStr(int flags) } return _T(" (") + str.Mid(3) + _T(")"); -}; +} // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION(wxRegExTestSuite);