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.7 by jsr166, Mon Oct 31 20:08:40 2016 UTC vs.
Revision 1.9 by jsr166, Thu Nov 3 16:53:13 2016 UTC

# Line 81 | Line 81 | public class Collection8Test extends JSR
81          c.iterator().forEachRemaining(alwaysThrows);
82          c.spliterator().forEachRemaining(alwaysThrows);
83          assertFalse(c.spliterator().tryAdvance(alwaysThrows));
84 +        if (c.spliterator().hasCharacteristics(Spliterator.SIZED))
85 +            assertEquals(0, c.spliterator().estimateSize());
86          if (Queue.class.isAssignableFrom(impl.klazz())) {
87              Queue q = (Queue) c;
88              assertNull(q.peek());
# Line 93 | Line 95 | public class Collection8Test extends JSR
95              assertNull(d.pollFirst());
96              assertNull(d.pollLast());
97              assertIteratorExhausted(d.descendingIterator());
98 +            d.descendingIterator().forEachRemaining(alwaysThrows);
99          }
100      }
101  
# Line 182 | Line 185 | public class Collection8Test extends JSR
185              }
186          };
187          try {
188 +            assertFalse(survivors.contains(null));
189              try {
190                  boolean modified = c.removeIf(randomPredicate);
191                  if (!modified) {
# Line 203 | Line 207 | public class Collection8Test extends JSR
207              System.err.printf("n=%d%n", n);
208              System.err.printf("accepts=%s%n", accepts);
209              System.err.printf("rejects=%s%n", rejects);
210 <            System.err.println(survivors);
210 >            System.err.printf("survivors=%s%n", survivors);
211              System.err.printf("threw=%s%n", threwAt.get());
212              throw ex;
213          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines