From f29956907096b9a1d5e7a8e7ebb6f13b1b1028ed Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Wed, 28 Mar 2012 13:34:21 +0000 Subject: [PATCH] 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 --- src/test/java/org/apache/commons/csv/CSVParserTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/apache/commons/csv/CSVParserTest.java b/src/test/java/org/apache/commons/csv/CSVParserTest.java index 211e28d7..622fd5b7 100644 --- a/src/test/java/org/apache/commons/csv/CSVParserTest.java +++ b/src/test/java/org/apache/commons/csv/CSVParserTest.java @@ -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('#');