Add testRFC4180().

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1458637 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2013-03-20 05:23:46 +00:00
parent 6b1eaad5a6
commit 8f0d0e03d6
1 changed files with 11 additions and 0 deletions

View File

@ -162,6 +162,17 @@ public class CSVFormatBuilderTest {
assertEquals(RFC4180, copyOfRCF4180);
}
@Test
public void testRFC4180() {
assertEquals(null, RFC4180.getCommentStart());
assertEquals(',', RFC4180.getDelimiter());
assertEquals(null, RFC4180.getEscape());
assertEquals(false, RFC4180.getIgnoreEmptyLines());
assertEquals(Character.valueOf('"'), RFC4180.getQuoteChar());
assertEquals(null, RFC4180.getQuotePolicy());
assertEquals("\r\n", RFC4180.getRecordSeparator());
}
@Test
public void testCopiedFormatWithChanges() {
final CSVFormat newFormat = CSVFormat.newBuilder(RFC4180).withDelimiter('!').build();