@@ -339,13 +339,22 @@ public synchronized void close() throws IOException {
339339 }
340340
341341 public void testSingleEOL (String s1 , String s2 , boolean ifEquals ) throws IOException {
342- assertEquals (ifEquals , IOUtils .contentEqualsIgnoreEOL (new CharArrayReader (s1 .toCharArray ()),
343- new CharArrayReader (s2 .toCharArray ())), "failed at :{" + s1 + "," + s2 + "}" );
344- assertEquals (ifEquals , IOUtils .contentEqualsIgnoreEOL (new CharArrayReader (s2 .toCharArray ()),
345- new CharArrayReader (s1 .toCharArray ())), "failed at :{" + s2 + "," + s1 + "}" );
346- assertTrue (IOUtils .contentEqualsIgnoreEOL (new CharArrayReader (s1 .toCharArray ()),
347- new CharArrayReader (s1 .toCharArray ())), "failed at :{" + s1 + "," + s1 + "}" );
348- assertTrue (IOUtils .contentEqualsIgnoreEOL (new CharArrayReader (s2 .toCharArray ()), new CharArrayReader (s2 .toCharArray ())), "failed at :{" + s2 + "," + s2 + "}" );
342+ assertEquals (ifEquals , IOUtils .contentEqualsIgnoreEOL (
343+ new CharArrayReader (s1 .toCharArray ()),
344+ new CharArrayReader (s2 .toCharArray ())
345+ ), "failed at :{" + s1 + "," + s2 + "}" );
346+ assertEquals (ifEquals , IOUtils .contentEqualsIgnoreEOL (
347+ new CharArrayReader (s2 .toCharArray ()),
348+ new CharArrayReader (s1 .toCharArray ())
349+ ), "failed at :{" + s2 + "," + s1 + "}" );
350+ assertTrue (IOUtils .contentEqualsIgnoreEOL (
351+ new CharArrayReader (s1 .toCharArray ()),
352+ new CharArrayReader (s1 .toCharArray ())
353+ ),"failed at :{" + s1 + "," + s1 + "}" );
354+ assertTrue (IOUtils .contentEqualsIgnoreEOL (
355+ new CharArrayReader (s2 .toCharArray ()),
356+ new CharArrayReader (s2 .toCharArray ())
357+ ), "failed at :{" + s2 + "," + s2 + "}" );
349358 }
350359
351360 @ Test public void testCopy_ByteArray_OutputStream () throws Exception {
0 commit comments