Assert.assertEquals("\"1,\\\\2\"\r\n", data);
}
@Test
public void test135() throws Exception {
CsvReader reader = CsvReader.parse("1\n\n1\r\r1\r\n\r\n1\n\r1");
Assert.assertTrue(reader.getSkipEmptyRecords());
reader.setSkipEmptyRecords(false);
Assert.assertFalse(reader.getSkipEmptyRecords());
Assert.assertTrue(reader.readRecord());
Assert.assertEquals(1, reader.getColumnCount());
Assert.assertEquals("1", reader.get(0));
Assert.assertEquals(0L, reader.getCurrentRecord());
Assert.assertTrue(reader.readRecord());
Assert.assertEquals(1, reader.getColumnCount());
Assert.assertEquals("", reader.get(0));
Assert.assertEquals(1L, reader.getCurrentRecord());
Assert.assertTrue(reader.readRecord());
Assert.assertEquals(1, reader.getColumnCount());
Assert.assertEquals("1", reader.get(0));
Assert.assertEquals(2L, reader.getCurrentRecord());
Assert.assertTrue(reader.readRecord());
Assert.assertEquals(1, reader.getColumnCount());
Assert.assertEquals("", reader.get(0));
Assert.assertEquals(3L, reader.getCurrentRecord());
Assert.assertTrue(reader.readRecord());
Assert.assertEquals(1, reader.getColumnCount());
Assert.assertEquals("1", reader.get(0));
Assert.assertEquals(4L, reader.getCurrentRecord());
Assert.assertTrue(reader.readRecord());
Assert.assertEquals(1, reader.getColumnCount());
Assert.assertEquals("", reader.get(0));
Assert.assertEquals(5L, reader.getCurrentRecord());
Assert.assertTrue(reader.readRecord());
Assert.assertEquals(1, reader.getColumnCount());
Assert.assertEquals("1", reader.get(0));
Assert.assertEquals(6L, reader.getCurrentRecord());
Assert.assertTrue(reader.readRecord());
Assert.assertEquals(1, reader.getColumnCount());
Assert.assertEquals("", reader.get(0));
Assert.assertEquals(7L, reader.getCurrentRecord());
Assert.assertTrue(reader.readRecord());
Assert.assertEquals(1, reader.getColumnCount());
Assert.assertEquals("1", reader.get(0));
Assert.assertEquals(8L, reader.getCurrentRecord());
Assert.assertFalse(reader.readRecord());
reader.close();
}