fix CsvParser

This commit is contained in:
Looly
2021-01-04 05:36:20 +08:00
parent 3c2f0e46b0
commit f3238ae1e7
4 changed files with 190 additions and 88 deletions

View File

@@ -41,6 +41,12 @@ public class CsvUtilTest {
Assert.assertEquals("\"", csvRow.get(6));
});
}
@Test
public void readTest3() {
CsvReader reader = CsvUtil.getReader();
reader.read(FileUtil.getUtf8Reader("test.csv"), Console::log);
}
@Test
@Ignore

View File

@@ -1 +1,2 @@
# 这是一行注释,读取时应忽略
"sss,sss",姓名,"性别",关注"对象",年龄,"","""
Can't render this file because it contains an unexpected character in line 1 and column 33.