Skip to content

Commit

Permalink
Update junit-platform-console/src/main/java/org/junit/platform/consol…
Browse files Browse the repository at this point in the history
…e/tasks/DiffPrinter.java

Co-authored-by: Marc Philipp <[email protected]>
  • Loading branch information
XJ114514 and marcphilipp authored Oct 9, 2024
1 parent eef49f1 commit bcd0608
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ static void printDiff(PrintWriter out, String expected, String actual) {
List<DiffRow> rows = generator.generateDiffRows(Arrays.asList(expected), Arrays.asList(actual));
out.println();
out.println("Please put the diff result below into a online markdown editor to see markdown effect:");
out.println("| expected | actual |");
out.println("| -------- | ------ |");
for (DiffRow row : rows) {
out.printf(" | %s | %s | \n", row.getOldLine(), row.getNewLine());
}
Expand Down

0 comments on commit bcd0608

Please sign in to comment.