Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit f299569

Browse files
committed
CSV-84 Clarify comment handling
Fix test case which expected to handle a trailing comment git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306315 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0fb414b commit f299569

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,12 @@ public void testDefaultFormat() throws IOException {
332332
String code = ""
333333
+ "a,b\n" // 1)
334334
+ "\"\n\",\" \"\n" // 2)
335-
+ "\"\",#\n" // 3)
335+
+ "#,\"\"\n" // 3)
336336
;
337337
String[][] res = {
338338
{"a", "b"},
339339
{"\n", " "},
340-
{"", "#"},
340+
{"#", ""},
341341
};
342342

343343
CSVFormat format = CSVFormat.DEFAULT;
@@ -352,7 +352,7 @@ public void testDefaultFormat() throws IOException {
352352
String[][] res_comments = {
353353
{"a", "b"},
354354
{"\n", " "},
355-
{""},
355+
{},
356356
};
357357

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

0 commit comments

Comments
 (0)