Skip to content

Commit 29c80da

Browse files
committed
Add test for CSV-57
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1307068 13f79535-47bb-0310-9956-ffa450edef68
1 parent 5a925ff commit 29c80da

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,14 @@ public void testEmptyFile() throws Exception {
223223
assertNull(parser.getRecord());
224224
}
225225

226+
@Test
227+
public void testCSV57() throws Exception {
228+
CSVParser parser = new CSVParser("", CSVFormat.DEFAULT);
229+
List<CSVRecord> l = parser.getRecords();
230+
assertNotNull(l);
231+
assertEquals(0, l.size());
232+
}
233+
226234
@Test
227235
@Ignore
228236
public void testBackslashEscapingOld() throws IOException {

0 commit comments

Comments
 (0)