Skip to content

Commit

Permalink
refactoring unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
juerg committed Oct 31, 2023
1 parent 4c41df0 commit 37d535f
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ public void test_5() {
new CSVReader(',', '\'').parse("1,'Zurich','Wipkingen, X-''1''',ZH");

assertEquals(1, records.size());
assertEquals(4, records.get(0).size());
assertEquals("1", records.get(0).get(0));
assertEquals("Zurich", records.get(0).get(1));
assertEquals("Wipkingen, X-'1'", records.get(0).get(2));
assertEquals("ZH", records.get(0).get(3));

final List<String> record = records.get(0);
assertEquals(4, record.size());
assertEquals("1",record.get(0));
assertEquals("Zurich", record.get(1));
assertEquals("Wipkingen, X-'1'", record.get(2));
assertEquals("ZH", record.get(3));
}

}

0 comments on commit 37d535f

Please sign in to comment.