ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/Collection8Test.java
(Generate patch)

Comparing jsr166/src/test/tck/Collection8Test.java (file contents):
Revision 1.36 by jsr166, Mon Nov 28 17:59:47 2016 UTC vs.
Revision 1.37 by jsr166, Tue Nov 29 05:23:31 2016 UTC

# Line 564 | Line 564 | public class Collection8Test extends JSR
564          final Object two = impl.makeElement(2);
565          final Consumer checkSanity = x -> assertTrue(x == one || x == two);
566          final Consumer<Object[]> checkArraySanity = array -> {
567 <            assertTrue(array.length <= 2);
567 >            // assertTrue(array.length <= 2); // duplicates are permitted
568              for (Object x : array) assertTrue(x == one || x == two);
569          };
570          final Object[] emptyArray =

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines