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

Commit c2839a6

Browse files
committed
fix: line separator failures from windows
1 parent 35e9ba7 commit c2839a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google-cloud-core/src/test/java/com/google/cloud/testing/junit4/tests/StdErrCaptureRuleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class StdErrCaptureRuleTest {
2929
@Test
3030
public void captureSuccessful() {
3131
System.err.println("err world");
32-
String expected = "err world\n";
32+
String expected = "err world" + System.lineSeparator();
3333
String actual = stdOutCap.getCapturedOutputAsUtf8String();
3434
assertEquals(expected, actual);
3535
}

google-cloud-core/src/test/java/com/google/cloud/testing/junit4/tests/StdOutCaptureRuleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class StdOutCaptureRuleTest {
2929
@Test
3030
public void captureSuccessful() {
3131
System.out.println("hello world");
32-
String expected = "hello world\n";
32+
String expected = "hello world" + System.lineSeparator();
3333
String actual = stdOutCap.getCapturedOutputAsUtf8String();
3434
assertEquals(expected, actual);
3535
}

0 commit comments

Comments
 (0)