parent
204bc3c887
commit
54dfc341ce
1 changed files with 10 additions and 0 deletions
|
|
@ -116,6 +116,16 @@ void FileTestCase::DoRoundTripTest(const wxMBConv& conv)
|
|||
wxString dataReadBack(buf, conv, len);
|
||||
CPPUNIT_ASSERT_EQUAL( data, dataReadBack );
|
||||
}
|
||||
|
||||
{
|
||||
wxFile fin(tf.GetName(), wxFile::read);
|
||||
CPPUNIT_ASSERT( fin.IsOpened() );
|
||||
|
||||
wxString dataReadBack;
|
||||
CPPUNIT_ASSERT( fin.ReadAll(&dataReadBack, conv) );
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL( data, dataReadBack );
|
||||
}
|
||||
}
|
||||
|
||||
#endif // wxUSE_UNICODE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue