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()); |
95 |
|
assertNull(d.pollFirst()); |
96 |
|
assertNull(d.pollLast()); |
97 |
|
assertIteratorExhausted(d.descendingIterator()); |
98 |
+ |
d.descendingIterator().forEachRemaining(alwaysThrows); |
99 |
|
} |
100 |
|
} |
101 |
|
|
185 |
|
} |
186 |
|
}; |
187 |
|
try { |
188 |
+ |
assertFalse(survivors.contains(null)); |
189 |
|
try { |
190 |
|
boolean modified = c.removeIf(randomPredicate); |
191 |
|
if (!modified) { |
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 |
|
} |