Skip to content

Commit

Permalink
added a unit test for an upcoming release.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottConway committed Jan 29, 2016
1 parent 1ca7ebb commit d75ad80
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/test/java/com/opencsv/CSVParserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.opencsv.enums.CSVReaderNullFieldIndicator;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

import java.io.IOException;
Expand Down Expand Up @@ -699,4 +700,16 @@ public void issue93ParsingEmptyDoubleQuoteField() throws IOException {
assertTrue(nextLine[0].isEmpty());
assertEquals("2", nextLine[1]);
}

@Ignore("Use this test for an Excel CSV Parser")
@Test
public void tryAndParseExcelGeneratedString() throws IOException {
CSVParserBuilder builder = new CSVParserBuilder();
CSVParser parser = builder.withStrictQuotes(true).build();

// \" \ \ " ",
String[] nextLine = parser.parseLineMulti("\"\\\"\"\",\\,\\,\"\"\"\",\"\"\",\"");

assertEquals("\\\"", nextLine[0]);
}
}

0 comments on commit d75ad80

Please sign in to comment.