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
This commit is contained in:
		@@ -218,8 +218,9 @@ void TextFileTestCase::ReadCRCRLF()
 | 
				
			|||||||
    // http://stackoverflow.com/questions/6998506/text-file-with-0d-0d-0a-line-breaks).
 | 
					    // 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.
 | 
					    // 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
 | 
					    // Test that the data are read, but don't worry about empty lines in between or
 | 
				
			||||||
    // line endings.
 | 
					    // line endings. Also include a longer streak of CRs, because they can
 | 
				
			||||||
    CreateTestFile("foo\r\r\nbar\r\r\nbaz\r\r\n");
 | 
					    // happen as well.
 | 
				
			||||||
 | 
					    CreateTestFile("foo\r\r\nbar\r\r\r\nbaz\r\r\n");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    wxTextFile f;
 | 
					    wxTextFile f;
 | 
				
			||||||
    CPPUNIT_ASSERT( f.Open(wxString::FromAscii(GetTestFileName())) );
 | 
					    CPPUNIT_ASSERT( f.Open(wxString::FromAscii(GetTestFileName())) );
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user