Skip to content

Commit

Permalink
Fix a failed unit test on Windows (apache#1907)
Browse files Browse the repository at this point in the history
* add demo

* use System.lineSeparator()

* delete my demo class
  • Loading branch information
frwh47 authored and beiwei30 committed Jun 11, 2018
1 parent 5d21088 commit ec0c7bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void testReadLines() throws Exception {
public void testWriteLines() throws Exception {
IOUtils.writeLines(os, new String[]{TEXT});
ByteArrayOutputStream bos = (ByteArrayOutputStream) os;
assertThat(new String(bos.toByteArray()), equalTo(TEXT + "\n"));
assertThat(new String(bos.toByteArray()), equalTo(TEXT + System.lineSeparator()));
}

@Test
Expand Down

0 comments on commit ec0c7bc

Please sign in to comment.