make test failure in TestStreamDecoder more informative

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-05-31 02:46:22 +00:00
parent 78648f606d
commit 04080f208e

View 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() );