From fe6f8254fbcc98c75aed585778a9dbb2edf3a9f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Wed, 5 Feb 2014 18:28:51 +0000 Subject: [PATCH] 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/trunk@75798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/textfile/textfiletest.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/textfile/textfiletest.cpp b/tests/textfile/textfiletest.cpp index 5971689af9..7d585eda9e 100644 --- a/tests/textfile/textfiletest.cpp +++ b/tests/textfile/textfiletest.cpp @@ -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())) );