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

Comparing jsr166/src/test/tck/CollectionTest.java (file contents):
Revision 1.4 by jsr166, Mon Oct 17 01:55:48 2016 UTC vs.
Revision 1.5 by jsr166, Mon Oct 17 02:47:09 2016 UTC

# Line 46 | Line 46 | public class CollectionTest extends JSR1
46              Object[] a = new Object[0];
47              assertSame(a, c.toArray(a));
48          }
49 +        assertIteratorExhausted(c.iterator());
50          Consumer alwaysThrows = (e) -> { throw new AssertionError(); };
51          c.forEach(alwaysThrows);
52          c.iterator().forEachRemaining(alwaysThrows);
# Line 62 | Line 63 | public class CollectionTest extends JSR1
63              assertNull(d.peekLast());
64              assertNull(d.pollFirst());
65              assertNull(d.pollLast());
66 +            assertIteratorExhausted(d.descendingIterator());
67          }
68      }
69  
# Line 121 | Line 123 | public class CollectionTest extends JSR1
123                  () -> d.getLast(),
124                  () -> d.removeFirst(),
125                  () -> d.removeLast(),
126 <                () -> d.pop());
126 >                () -> d.pop(),
127 >                () -> d.descendingIterator().next());
128          }
129      }
130  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines