]> git.saurik.com Git - wxWidgets.git/commitdiff
make test failure in TestStreamDecoder more informative
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 31 May 2008 02:46:22 +0000 (02:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 31 May 2008 02:46:22 +0000 (02:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/mbconv/mbconvtest.cpp

index e1db40d81d43992709ec98d6429ecce08821d3c1..d25230d2e343eb22d4cd1e02534b96470d02afa6 100644 (file)
@@ -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() );