- failIf(result != m_expected[i], wxString::Format(
- _T("match(%d) == %s, expected == %s"), i,
- quote(result).c_str(), quote(m_expected[i]).c_str()));
+ msg.clear();
+ msg << _T("match(") << i << _T(") == ") << quote(result)
+ << _T(", expected == ") << quote(m_expected[i]);
+ failIf(result != m_expected[i], msg);