Add back trailing comment test (this time with correct expected results)
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1306660 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a4dd5eb503
commit
49c9a67b26
|
@ -330,14 +330,14 @@ public class CSVParserTest {
|
|||
@Test
|
||||
public void testDefaultFormat() throws IOException {
|
||||
String code = ""
|
||||
+ "a,b\n" // 1)
|
||||
+ "\"\n\",\" \"\n" // 2)
|
||||
+ "a,b#\n" // 1)
|
||||
+ "\"\n\",\" \",#\n" // 2)
|
||||
+ "#,\"\"\n" // 3)
|
||||
+ "# Final comment\n"// 4)
|
||||
;
|
||||
String[][] res = {
|
||||
{"a", "b"},
|
||||
{"\n", " "},
|
||||
{"a", "b#"},
|
||||
{"\n", " ", "#"},
|
||||
{"#", ""},
|
||||
{"# Final comment"}
|
||||
};
|
||||
|
@ -352,8 +352,8 @@ public class CSVParserTest {
|
|||
assertTrue("Failed to parse without comments", CSVPrinterTest.equals(res, records));
|
||||
|
||||
String[][] res_comments = {
|
||||
{"a", "b"},
|
||||
{"\n", " "},
|
||||
{"a", "b#"},
|
||||
{"\n", " ", "#"},
|
||||
};
|
||||
|
||||
format = CSVFormat.DEFAULT.withCommentStart('#');
|
||||
|
|
Loading…
Reference in New Issue