@@ -175,8 +175,8 @@ public void testNextToken3Escaping() throws IOException {
175175 /* file: a,\,,b
176176 * \,,
177177 */
178- String code = "a,\\ ,,b\\ \\ \n \\ ,,\\ \n c,d\\ \n " ;
179- CSVFormat format = CSVFormat .DEFAULT .withEscape ('\\' );
178+ String code = "a,\\ ,,b\\ \\ \n \\ ,,\\ \n c,d\\ \r \n e " ;
179+ CSVFormat format = CSVFormat .DEFAULT .withEscape ('\\' ). withEmptyLinesIgnored ( false ) ;
180180 assertTrue (format .isEscaping ());
181181 Lexer parser = getLexer (code , format );
182182
@@ -185,8 +185,8 @@ public void testNextToken3Escaping() throws IOException {
185185 assertTokenEquals (EORECORD , "b\\ " , parser .nextToken (new Token ()));
186186 assertTokenEquals (TOKEN , "," , parser .nextToken (new Token ()));
187187 assertTokenEquals (TOKEN , "\n c" , parser .nextToken (new Token ()));
188- assertTokenEquals (EOF , "d\n " , parser .nextToken (new Token ()));
189- assertTokenEquals (EOF , "" , parser .nextToken (new Token ()));
188+ assertTokenEquals (EORECORD , "d\r " , parser .nextToken (new Token ()));
189+ assertTokenEquals (EOF , "e " , parser .nextToken (new Token ()));
190190 }
191191
192192 // simple token with escaping enabled
0 commit comments