Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit 61b6622

Browse files
committed
Add a trailing comment
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306432 13f79535-47bb-0310-9956-ffa450edef68
1 parent 22af432 commit 61b6622

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/java/org/apache/commons/csv/CSVLexerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void testNextToken2() throws IOException {
6262
"#foo\n"+
6363
"\n"+
6464
"d,e,#no-comment\n"+
65-
"\n";
65+
"# Final comment\n";
6666
CSVFormat format = CSVFormat.DEFAULT.withCommentStart('#');
6767

6868
Lexer parser = getLexer(code, format);
@@ -80,6 +80,7 @@ public void testNextToken2() throws IOException {
8080
assertTokenEquals(TOKEN, "d", parser.nextToken(new Token()));
8181
assertTokenEquals(TOKEN, "e", parser.nextToken(new Token()));
8282
assertTokenEquals(EORECORD, "#no-comment", parser.nextToken(new Token()));
83+
assertTokenEquals(COMMENT, "", parser.nextToken(new Token()));
8384
assertTokenEquals(EOF, "", parser.nextToken(new Token()));
8485
assertTokenEquals(EOF, "", parser.nextToken(new Token()));
8586

0 commit comments

Comments
 (0)