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:
Sebastian Bazley 2012-03-28 13:34:21 +00:00
parent 0fb414b6f2
commit f299569070
1 changed files with 3 additions and 3 deletions

View File

@ -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('#');