@@ -0,0 +1,1043 @@
+package org.sjj.csvstream;%0A%0Aimport static org.junit.Assert.*;%0Aimport org.junit.Test;%0A%0Apublic class QuotingTest %7B%0A  @Test%0A  public void testEncodeDecodeNestedQuotes() %7B%0A    String%5B%5D inner_data = %7B %223.14%22, %22test test%22, %22abc%22, %22123,456.00%22 %7D;%0A    CsvFormatter formatter = new CsvFormatter();%0A    String cell = formatter.format(inner_data);%0A    String%5B%5D outer_data = %7B cell, %22another test%22, %22Pipe %7C Test%22%7D;%0A    formatter = new CsvFormatter(CsvConfig.DEFAULTS.withDelimiter('%7C'));%0A%0A    String encoded_string = formatter.format(outer_data);%0A//    System.out.println(%22Encoded_string: %22 + encoded_string);%0A%0A    // Now break the encoded-string back apart and make sure we get the data back out.%0A    String%5B%5D new_outer_data = CsvParser.split(encoded_string, '%7C');%0A    for (int i = 0; i %3C outer_data.length; i++) %7B%0A      assertEquals(outer_data%5Bi%5D, new_outer_data%5Bi%5D);%0A    %7D%0A    String%5B%5D new_inner_data = CsvParser.split(outer_data%5B0%5D);%0A    for (int i = 0; i %3C inner_data.length; i++) %7B%0A      assertEquals(inner_data%5Bi%5D, new_inner_data%5Bi%5D);%0A    %7D%0A  %7D%0A%0A%7D%0A

Add test for nested CSVs