Skip to content

Commit

Permalink
#458 - Make test cross platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfickle committed Aug 22, 2020
1 parent 23606dd commit b329580
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,10 @@ public void testIssue458PageContentRepeatedInMargin() throws IOException {
"Two\r\n" +
"Three";

assertEquals(expected.trim(), text.trim());
String normalizedExpected = expected.replaceAll("(\\r|\\r\\n|\\n)", System.lineSeparator());
String normalizedActual = text.replaceAll("(\\r|\\r\\n|\\n)", System.lineSeparator());

assertEquals(normalizedExpected.trim(), normalizedActual.trim());
}
}

Expand Down

0 comments on commit b329580

Please sign in to comment.