We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22af432 commit 61b6622Copy full SHA for 61b6622
1 file changed
src/test/java/org/apache/commons/csv/CSVLexerTest.java
@@ -62,7 +62,7 @@ public void testNextToken2() throws IOException {
62
"#foo\n"+
63
"\n"+
64
"d,e,#no-comment\n"+
65
- "\n";
+ "# Final comment\n";
66
CSVFormat format = CSVFormat.DEFAULT.withCommentStart('#');
67
68
Lexer parser = getLexer(code, format);
@@ -80,6 +80,7 @@ public void testNextToken2() throws IOException {
80
assertTokenEquals(TOKEN, "d", parser.nextToken(new Token()));
81
assertTokenEquals(TOKEN, "e", parser.nextToken(new Token()));
82
assertTokenEquals(EORECORD, "#no-comment", parser.nextToken(new Token()));
83
+ assertTokenEquals(COMMENT, "", parser.nextToken(new Token()));
84
assertTokenEquals(EOF, "", parser.nextToken(new Token()));
85
86
0 commit comments