From: Vadim Zeitlin Date: Sat, 31 May 2008 02:46:22 +0000 (+0000) Subject: make test failure in TestStreamDecoder more informative X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/04080f208ee3cc8de53e3fbdefa2b1dbcb74eda0 make test failure in TestStreamDecoder more informative git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/mbconv/mbconvtest.cpp b/tests/mbconv/mbconvtest.cpp index e1db40d81d..d25230d2e3 100644 --- a/tests/mbconv/mbconvtest.cpp +++ b/tests/mbconv/mbconvtest.cpp @@ -1018,7 +1018,11 @@ void MBConvTestCase::TestStreamDecoder( for ( size_t i = 0; i < wideChars; i++ ) { wxChar wc = textInputStream.GetChar(); - CPPUNIT_ASSERT( wc == wideBuffer[i] ); + CPPUNIT_ASSERT_EQUAL_MESSAGE( + std::string(wxString::Format("At position %lu", (unsigned long)i)), + wideBuffer[i], + wc + ); } CPPUNIT_ASSERT( 0 == textInputStream.GetChar() ); CPPUNIT_ASSERT( memoryInputStream.Eof() );