[cvs] / jsr166 / src / test / tck / ArrayDequeTest.java Repository:
ViewVC logotype

Diff of /jsr166/src/test/tck/ArrayDequeTest.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.47, Mon Oct 17 15:31:19 2016 UTC revision 1.48, Mon Oct 17 15:48:01 2016 UTC
# Line 1001  Line 1001 
1001              | Spliterator.SIZED              | Spliterator.SIZED
1002              | Spliterator.SUBSIZED;              | Spliterator.SUBSIZED;
1003          assertEquals(required, characteristics & required);          assertEquals(required, characteristics & required);
1004            assertTrue(s.hasCharacteristics(required));
1005          assertEquals(0, characteristics          assertEquals(0, characteristics
1006                       & (Spliterator.CONCURRENT                       & (Spliterator.CONCURRENT
1007                          | Spliterator.DISTINCT                          | Spliterator.DISTINCT
# Line 1034  Line 1035 
1035                       () -> new ArrayDeque<>(Integer.MAX_VALUE));                       () -> new ArrayDeque<>(Integer.MAX_VALUE));
1036    
1037          q = populatedDeque(0);          q = populatedDeque(0);
1038          q.addAll(Collections.nCopies(maxSize - 2, (Integer) 42));          assertTrue(q.addAll(Collections.nCopies(maxSize - 2, (Integer) 42)));
1039          assertEquals((Integer) 42, q.peekFirst());          assertEquals((Integer) 42, q.peekFirst());
1040          assertEquals((Integer) 42, q.peekLast());          assertEquals((Integer) 42, q.peekLast());
1041          assertEquals(maxSize - 2, q.size());          assertEquals(maxSize - 2, q.size());

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8