Skip to content

Commit 5e5512f

Browse files
committed
Add a message to some JUnit assertions to debug local failures
OK on GH
1 parent e7a5708 commit 5e5512f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void testParseFourBytes() throws IOException {
4141
final long[] charByteKey = { 0, 84, 701, 1318, 1935 };
4242
int idx = 0;
4343
for (CSVRecord record : parser) {
44-
assertEquals(charByteKey[idx++], record.getBytePosition());
44+
assertEquals(charByteKey[idx++], record.getBytePosition(), "index " + idx);
4545
}
4646
}
4747
}
@@ -54,7 +54,7 @@ public void testParseThreeBytes() throws IOException {
5454
final long[] charByteKey = { 0, 89, 242, 395 };
5555
int idx = 0;
5656
for (CSVRecord record : parser) {
57-
assertEquals(charByteKey[idx++], record.getBytePosition());
57+
assertEquals(charByteKey[idx++], record.getBytePosition(), "index " + idx);
5858
}
5959
}
6060
}

0 commit comments

Comments
 (0)