You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2012/03/28 17:27:54 UTC
svn commit: r1306414 -
/commons/proper/csv/trunk/src/test/java/org/apache/commons/csv/CSVLexerTest.java
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);