Skip to content

Commit cff3260

Browse files
committed
Better assertion failure message
1 parent 32bc947 commit cff3260

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
@@ -49,7 +49,7 @@ public void testParseFourBytes() throws IOException {
4949
final long[] charByteKey = { 0, 84, 701, 1318, 1935 };
5050
int idx = 0;
5151
for (final CSVRecord record : parser) {
52-
assertEquals(charByteKey[idx++], record.getBytePosition(), "index " + idx);
52+
assertEquals(charByteKey[idx++], record.getBytePosition(), "At index " + idx);
5353
}
5454
}
5555
}
@@ -69,7 +69,7 @@ public void testParseThreeBytes() throws IOException {
6969
final long[] charByteKey = { 0, 89, 242, 395 };
7070
int idx = 0;
7171
for (final CSVRecord record : parser) {
72-
assertEquals(charByteKey[idx++], record.getBytePosition(), "index " + idx);
72+
assertEquals(charByteKey[idx++], record.getBytePosition(), "At index " + idx);
7373
}
7474
}
7575
}

0 commit comments

Comments
 (0)