commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1306414 - /commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVLexerTest.java
Date Wed, 28 Mar 2012 15:27:54 GMT
Author: sebb
Date: Wed Mar 28 15:27:53 2012
New Revision: 1306414

URL: http://svn.apache.org/viewvc?rev=1306414&view=rev
Log:
Make lines clearer

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

Modified: commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVLexerTest.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVLexerTest.java?rev=1306414&r1=1306413&r2=1306414&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVLexerTest.java (original)
+++ commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVLexerTest.java Wed Mar
28 15:27:53 2012
@@ -56,14 +56,13 @@ public class CSVLexerTest {
     // multiline including comments (and empty lines)
     @Test
     public void testNextToken2() throws IOException {
-        /*   file:   1,2,3,
-        *           a,b x,c
-        *
-        *           # this is a comment
-        *           d,e,
-        *
-        */
-        String code = "1,2,3,\na,b x,c\n#foo\n\nd,e,\n\n";
+        final String code = 
+                "1,2,3,\n"+
+                "a,b x,c\n"+
+                "#foo\n"+
+                "\n"+
+                "d,e,\n"+
+                "\n";
         CSVFormat format = CSVFormat.DEFAULT.withCommentStart('#');
         
         Lexer parser = getLexer(code, format);



Mime
View raw message