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

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

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

revision 1.39, Sat May 23 00:53:08 2015 UTC revision 1.41, Sun Oct 16 20:44:18 2016 UTC
# Line 26  Line 26 
26    
27      /**      /**
28       * Returns a new queue of given size containing consecutive       * Returns a new queue of given size containing consecutive
29       * Integers 0 ... n.       * Integers 0 ... n - 1.
30       */       */
31      private LinkedList<Integer> populatedQueue(int n) {      private LinkedList<Integer> populatedQueue(int n) {
32          LinkedList<Integer> q = new LinkedList<Integer>();          LinkedList<Integer> q = new LinkedList<Integer>();
# Line 35  Line 35 
35              assertTrue(q.offer(new Integer(i)));              assertTrue(q.offer(new Integer(i)));
36          assertFalse(q.isEmpty());          assertFalse(q.isEmpty());
37          assertEquals(n, q.size());          assertEquals(n, q.size());
38            assertEquals((Integer) 0, q.peekFirst());
39            assertEquals((Integer) (n - 1), q.peekLast());
40          return q;          return q;
41      }      }
42    

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

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8