Skip to content

Commit 3567ad0

Browse files
committed
Use Utils class for comparing list of CSVRecords against expectation array
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1460194 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2e543f4 commit 3567ad0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/test/java/org/apache/commons/csv/CSVParserTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,8 @@ public void testBackslashEscaping() throws IOException {
318318
final CSVParser parser = new CSVParser(code, format);
319319
final List<CSVRecord> records = parser.getRecords();
320320
assertTrue(records.size() > 0);
321-
for (int i = 0; i < res.length; i++) {
322-
assertArrayEquals(res[i], records.get(i).values());
323-
}
321+
322+
Utils.compare("Records do not match expected result", res, records);
324323
}
325324

326325
@Test

0 commit comments

Comments
 (0)