[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.40, Sun Oct 16 20:16:36 2016 UTC revision 1.41, Sun Oct 16 20:44:18 2016 UTC
# Line 35  Line 35 
35    
36      /**      /**
37       * Returns a new deque of given size containing consecutive       * Returns a new deque of given size containing consecutive
38       * Integers 0 ... n.       * Integers 0 ... n - 1.
39       */       */
40      private ArrayDeque<Integer> populatedDeque(int n) {      private ArrayDeque<Integer> populatedDeque(int n) {
41          ArrayDeque<Integer> q = new ArrayDeque<Integer>();          ArrayDeque<Integer> q = new ArrayDeque<Integer>();
# Line 44  Line 44 
44              assertTrue(q.offerLast(new Integer(i)));              assertTrue(q.offerLast(new Integer(i)));
45          assertFalse(q.isEmpty());          assertFalse(q.isEmpty());
46          assertEquals(n, q.size());          assertEquals(n, q.size());
47            assertEquals((Integer) 0, q.peekFirst());
48            assertEquals((Integer) (n - 1), q.peekLast());
49          return q;          return q;
50      }      }
51    

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8