compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2bc8663422
commit
238fb020fa
@ -226,14 +226,20 @@ void RegExTestCase::doTest(int flavor)
|
|||||||
|
|
||||||
// 'e' - test that the pattern fails to compile
|
// 'e' - test that the pattern fails to compile
|
||||||
if (m_mode == 'e')
|
if (m_mode == 'e')
|
||||||
return failIf(re.IsValid(), _T("compile suceeded (should fail)"));
|
{
|
||||||
|
failIf(re.IsValid(), _T("compile suceeded (should fail)"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
failIf(!re.IsValid(), _T("compile failed"));
|
failIf(!re.IsValid(), _T("compile failed"));
|
||||||
|
|
||||||
bool matches = re.Matches(m_data, m_matchFlags);
|
bool matches = re.Matches(m_data, m_matchFlags);
|
||||||
|
|
||||||
// 'f' or 'p' - test that the pattern does not match
|
// 'f' or 'p' - test that the pattern does not match
|
||||||
if (m_mode == 'f' || m_mode == 'p')
|
if (m_mode == 'f' || m_mode == 'p')
|
||||||
return failIf(matches, _T("match suceeded (should fail)"));
|
{
|
||||||
|
failIf(matches, _T("match suceeded (should fail)"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// otherwise 'm' or 'i' - test the pattern does match
|
// otherwise 'm' or 'i' - test the pattern does match
|
||||||
failIf(!matches, _T("match failed"));
|
failIf(!matches, _T("match failed"));
|
||||||
|
Loading…
Reference in New Issue
Block a user