File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/csv Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -333,11 +333,13 @@ public void testDefaultFormat() throws IOException {
333333 + "a,b\n " // 1)
334334 + "\" \n \" ,\" \" \n " // 2)
335335 + "#,\" \" \n " // 3)
336+ + "# Final comment\n " // 4)
336337 ;
337338 String [][] res = {
338339 {"a" , "b" },
339340 {"\n " , " " },
340341 {"#" , "" },
342+ {"# Final comment" }
341343 };
342344
343345 CSVFormat format = CSVFormat .DEFAULT ;
@@ -347,7 +349,7 @@ public void testDefaultFormat() throws IOException {
347349 List <CSVRecord > records = parser .getRecords ();
348350 assertTrue (records .size () > 0 );
349351
350- assertTrue (CSVPrinterTest .equals (res , records ));
352+ assertTrue ("Failed to parse without comments" , CSVPrinterTest .equals (res , records ));
351353
352354 String [][] res_comments = {
353355 {"a" , "b" },
@@ -358,7 +360,7 @@ public void testDefaultFormat() throws IOException {
358360 parser = new CSVParser (code , format );
359361 records = parser .getRecords ();
360362
361- assertTrue (CSVPrinterTest .equals (res_comments , records ));
363+ assertTrue ("Failed to parse with comments" , CSVPrinterTest .equals (res_comments , records ));
362364 }
363365
364366 @ Test
You can’t perform that action at this time.
0 commit comments