Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
fix: line separator failures from windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWhitehead committed Nov 10, 2020
1 parent 35e9ba7 commit c2839a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -29,7 +29,7 @@ public class StdErrCaptureRuleTest {
@Test
public void captureSuccessful() {
System.err.println("err world");
String expected = "err world\n";
String expected = "err world" + System.lineSeparator();
String actual = stdOutCap.getCapturedOutputAsUtf8String();
assertEquals(expected, actual);
}
Expand Down
Expand Up @@ -29,7 +29,7 @@ public class StdOutCaptureRuleTest {
@Test
public void captureSuccessful() {
System.out.println("hello world");
String expected = "hello world\n";
String expected = "hello world" + System.lineSeparator();
String actual = stdOutCap.getCapturedOutputAsUtf8String();
assertEquals(expected, actual);
}
Expand Down

0 comments on commit c2839a6

Please sign in to comment.