Skip to content

Commit

Permalink
Add debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Nov 3, 2023
1 parent b001b4d commit ca43afa
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ private void compareCSVFiles(Path expected, Path actual) throws IOException {
throw new RuntimeException(String.format("CSV format in file %s is malformed.", expected), e);
}

// print all lines that are in actual
System.out.println("Actual lines:" + actualValues.stream().map(x -> "[" + String.join(", ", x) + "]").collect(Collectors.joining("\n")));

for (String[] expectedLine : expectedValues) {
List<String[]> sameLines = actualValues.stream().filter(x -> {
for (int i = 0; i < expectedLine.length; i++) {
Expand Down

0 comments on commit ca43afa

Please sign in to comment.