Skip to content

Commit

Permalink
format.
Browse files Browse the repository at this point in the history
  • Loading branch information
XenoAmess committed Aug 5, 2020
1 parent 3a28dc3 commit e5242fd
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/test/java/org/apache/commons/io/IOUtilsTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,22 @@ public synchronized void close() throws IOException {
}

public void testSingleEOL(String s1, String s2, boolean ifEquals) throws IOException {
assertEquals(ifEquals, IOUtils.contentEqualsIgnoreEOL(new CharArrayReader(s1.toCharArray()),
new CharArrayReader(s2.toCharArray())), "failed at :{" + s1 + "," + s2 + "}");
assertEquals(ifEquals, IOUtils.contentEqualsIgnoreEOL(new CharArrayReader(s2.toCharArray()),
new CharArrayReader(s1.toCharArray())), "failed at :{" + s2 + "," + s1 + "}");
assertTrue(IOUtils.contentEqualsIgnoreEOL(new CharArrayReader(s1.toCharArray()),
new CharArrayReader(s1.toCharArray())), "failed at :{" + s1 + "," + s1 + "}");
assertTrue(IOUtils.contentEqualsIgnoreEOL(new CharArrayReader(s2.toCharArray()), new CharArrayReader(s2.toCharArray())), "failed at :{" + s2 + "," + s2 + "}");
assertEquals(ifEquals, IOUtils.contentEqualsIgnoreEOL(
new CharArrayReader(s1.toCharArray()),
new CharArrayReader(s2.toCharArray())
), "failed at :{" + s1 + "," + s2 + "}");
assertEquals(ifEquals, IOUtils.contentEqualsIgnoreEOL(
new CharArrayReader(s2.toCharArray()),
new CharArrayReader(s1.toCharArray())
), "failed at :{" + s2 + "," + s1 + "}");
assertTrue(IOUtils.contentEqualsIgnoreEOL(
new CharArrayReader(s1.toCharArray()),
new CharArrayReader(s1.toCharArray())
),"failed at :{" + s1 + "," + s1 + "}");
assertTrue(IOUtils.contentEqualsIgnoreEOL(
new CharArrayReader(s2.toCharArray()),
new CharArrayReader(s2.toCharArray())
), "failed at :{" + s2 + "," + s2 + "}");
}

@Test public void testCopy_ByteArray_OutputStream() throws Exception {
Expand Down

0 comments on commit e5242fd

Please sign in to comment.