Skip to content

Commit

Permalink
Workaround for failing tests on Windows. TODO: Raise ticket to make
Browse files Browse the repository at this point in the history
tests platform-independent.
  • Loading branch information
cameronxm committed Oct 19, 2016
1 parent 662e33e commit 628d928
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/FizzBuzzTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ private void doFizzBuzz(final int n, final String s) throws IOException {
this.fb.fizzBuzz(n);

System.out.flush();
assertEquals(s, baos.toString());
final String platformDependentExpectedResult = s.replaceAll("\\n", System.getProperty("line.separator"));
assertEquals(platformDependentExpectedResult, baos.toString());
}

@Test
Expand Down

0 comments on commit 628d928

Please sign in to comment.