commons-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1306432&view=rev
Log:
Add a trailing comment

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=1306432&r1=1306431&r2=1306432&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:35:10 2012
@@ -62,7 +62,7 @@ public class CSVLexerTest {
                 "#foo\n"+
                 "\n"+
                 "d,e,#no-comment\n"+
-                "\n";
+                "# Final comment\n";
         CSVFormat format = CSVFormat.DEFAULT.withCommentStart('#');
         
         Lexer parser = getLexer(code, format);
@@ -80,6 +80,7 @@ public class CSVLexerTest {
         assertTokenEquals(TOKEN, "d", parser.nextToken(new Token()));
         assertTokenEquals(TOKEN, "e", parser.nextToken(new Token()));
         assertTokenEquals(EORECORD, "#no-comment", parser.nextToken(new Token()));
+        assertTokenEquals(COMMENT, "", parser.nextToken(new Token()));
         assertTokenEquals(EOF, "", parser.nextToken(new Token()));
         assertTokenEquals(EOF, "", parser.nextToken(new Token()));
 



Mime
View raw message