Skip to content

Commit

Permalink
Add assert as sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 28, 2023
1 parent 347c872 commit f00b91b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.apache.commons.csv.issues;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

import java.io.IOException;
import java.io.StringReader;
Expand Down Expand Up @@ -51,6 +52,7 @@ private void testJiraCsv149EndWithEolAtEof(final boolean eolAtEof) throws IOExce
int lineCounter = 2;
try (final CSVParser parser = new CSVParser(records, format)) {
for (final CSVRecord record : parser) {
assertNotNull(record);
assertEquals(lineCounter++, parser.getCurrentLineNumber());
}
}
Expand Down

0 comments on commit f00b91b

Please sign in to comment.