X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d68e52c8f8ce9c54c20f1357f5ab6b2a8c4197b..7256e9b6ad4bc899d7c4d1d70e7afc93965200f1:/tests/regex/regextest.cpp diff --git a/tests/regex/regextest.cpp b/tests/regex/regextest.cpp index bd08950859..042741ed3e 100644 --- a/tests/regex/regextest.cpp +++ b/tests/regex/regextest.cpp @@ -272,19 +272,23 @@ void RegExTestCase::doTest(int flavor) // m - check the match returns the strings given if (m_mode == 'm') + { if (start < INT_MAX) result = m_data.substr(start, len); else result = _T(""); + } // i - check the match returns the offsets given else if (m_mode == 'i') + { if (start > INT_MAX) result = _T("-1 -1"); else if (start + len > 0) result << start << _T(" ") << start + len - 1; else result << start << _T(" -1"); + } msg.clear(); msg << _T("match(") << i << _T(") == ") << quote(result)