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:
@@ -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() );
|
||||
|
Reference in New Issue
Block a user