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
This commit is contained in:
parent
0fb414b6f2
commit
f299569070
|
@ -332,12 +332,12 @@ public class CSVParserTest {
|
|||
String code = ""
|
||||
+ "a,b\n" // 1)
|
||||
+ "\"\n\",\" \"\n" // 2)
|
||||
+ "\"\",#\n" // 3)
|
||||
+ "#,\"\"\n" // 3)
|
||||
;
|
||||
String[][] res = {
|
||||
{"a", "b"},
|
||||
{"\n", " "},
|
||||
{"", "#"},
|
||||
{"#", ""},
|
||||
};
|
||||
|
||||
CSVFormat format = CSVFormat.DEFAULT;
|
||||
|
@ -352,7 +352,7 @@ public class CSVParserTest {
|
|||
String[][] res_comments = {
|
||||
{"a", "b"},
|
||||
{"\n", " "},
|
||||
{""},
|
||||
{},
|
||||
};
|
||||
|
||||
format = CSVFormat.DEFAULT.withCommentStart('#');
|
||||
|
|
Loading…
Reference in New Issue