commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1406237 - /commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java
Date Tue, 06 Nov 2012 17:31:17 GMT
Author: sebb
Date: Tue Nov  6 17:31:16 2012
New Revision: 1406237

URL: http://svn.apache.org/viewvc?rev=1406237&view=rev
Log:
IO-356 CharSequenceInputStream#reset() behaves incorrectly in case when buffer size is not
dividable by data size
Extend the test case

Modified:
    commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java

Modified: commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java?rev=1406237&r1=1406236&r2=1406237&view=diff
==============================================================================
--- commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java
(original)
+++ commons/proper/io/trunk/src/test/java/org/apache/commons/io/input/CharSequenceInputStreamTest.java
Tue Nov  6 17:31:16 2012
@@ -189,5 +189,10 @@ public class CharSequenceInputStreamTest
         testIO_356(10, 10); // OK
         testIO_356(10, 20); // OK
         testIO_356(10, 13); // fails
+        for(int bs = 1; bs <= 10; bs++) {
+            for(int ds = 1; ds <= 20; ds++) {
+                testIO_356(bs, ds);                
+            }
+        }
     }
 }



Mime
View raw message