mirror of
https://github.com/apache/commons-csv.git
synced 2025-02-17 23:46:17 +00:00
Make lines clearer
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306414 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
67390ea304
commit
a708256b65
@ -56,14 +56,13 @@ public class CSVLexerTest {
|
|||||||
// multiline including comments (and empty lines)
|
// multiline including comments (and empty lines)
|
||||||
@Test
|
@Test
|
||||||
public void testNextToken2() throws IOException {
|
public void testNextToken2() throws IOException {
|
||||||
/* file: 1,2,3,
|
final String code =
|
||||||
* a,b x,c
|
"1,2,3,\n"+
|
||||||
*
|
"a,b x,c\n"+
|
||||||
* # this is a comment
|
"#foo\n"+
|
||||||
* d,e,
|
"\n"+
|
||||||
*
|
"d,e,\n"+
|
||||||
*/
|
"\n";
|
||||||
String code = "1,2,3,\na,b x,c\n#foo\n\nd,e,\n\n";
|
|
||||||
CSVFormat format = CSVFormat.DEFAULT.withCommentStart('#');
|
CSVFormat format = CSVFormat.DEFAULT.withCommentStart('#');
|
||||||
|
|
||||||
Lexer parser = getLexer(code, format);
|
Lexer parser = getLexer(code, format);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user