Skip to content

Commit 49c9a67

Browse files
committed
Add back trailing comment test (this time with correct expected results)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306660 13f79535-47bb-0310-9956-ffa450edef68
1 parent a4dd5eb commit 49c9a67

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/test/java/org/apache/commons/csv/CSVParserTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -330,14 +330,14 @@ public void testBackslashEscaping2() throws IOException {
330330
@Test
331331
public void testDefaultFormat() throws IOException {
332332
String code = ""
333-
+ "a,b\n" // 1)
334-
+ "\"\n\",\" \"\n" // 2)
333+
+ "a,b#\n" // 1)
334+
+ "\"\n\",\" \",#\n" // 2)
335335
+ "#,\"\"\n" // 3)
336336
+ "# Final comment\n"// 4)
337337
;
338338
String[][] res = {
339-
{"a", "b"},
340-
{"\n", " "},
339+
{"a", "b#"},
340+
{"\n", " ", "#"},
341341
{"#", ""},
342342
{"# Final comment"}
343343
};
@@ -352,8 +352,8 @@ public void testDefaultFormat() throws IOException {
352352
assertTrue("Failed to parse without comments", CSVPrinterTest.equals(res, records));
353353

354354
String[][] res_comments = {
355-
{"a", "b"},
356-
{"\n", " "},
355+
{"a", "b#"},
356+
{"\n", " ", "#"},
357357
};
358358

359359
format = CSVFormat.DEFAULT.withCommentStart('#');

0 commit comments

Comments
 (0)