TextFileTestCase: test for \r\r\r\n parsing.

While r75387 fixed parsing of \r\r\n, it still didn't handle triple-\r correctly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2014-02-05 18:29:39 +00:00
parent 6ff9e6f003
commit a3013fcfb5

View File

@@ -218,8 +218,9 @@ void TextFileTestCase::ReadCRCRLF()
// http://stackoverflow.com/questions/6998506/text-file-with-0d-0d-0a-line-breaks).
// Older versions of wx would loose all data when reading such files.
// Test that the data are read, but don't worry about empty lines in between or
// line endings.
CreateTestFile("foo\r\r\nbar\r\r\nbaz\r\r\n");
// line endings. Also include a longer streak of CRs, because they can
// happen as well.
CreateTestFile("foo\r\r\nbar\r\r\r\nbaz\r\r\n");
wxTextFile f;
CPPUNIT_ASSERT( f.Open(wxString::FromAscii(GetTestFileName())) );