commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1306315 - /commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java
Date Wed, 28 Mar 2012 13:34:21 GMT
Author: sebb
Date: Wed Mar 28 13:34:21 2012
New Revision: 1306315

URL: http://svn.apache.org/viewvc?rev=1306315&view=rev
Log:
CSV-84 Clarify comment handling
Fix test case which expected to handle a trailing comment

Modified:
    commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java

Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java?rev=1306315&r1=1306314&r2=1306315&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java (original)
+++ commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVParserTest.java Wed Mar
28 13:34:21 2012
@@ -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('#');



Mime
View raw message