[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.24, Fri Nov 5 00:17:22 2010 UTC revision 1.25, Thu Nov 18 20:21:53 2010 UTC
# Line 233  Line 233 
233      public void testRemoveElement() {      public void testRemoveElement() {
234          LinkedList q = populatedQueue(SIZE);          LinkedList q = populatedQueue(SIZE);
235          for (int i = 1; i < SIZE; i+=2) {          for (int i = 1; i < SIZE; i+=2) {
236              assertTrue(q.remove(new Integer(i)));              assertTrue(q.contains(i));
237                assertTrue(q.remove((Integer)i));
238                assertFalse(q.contains(i));
239                assertTrue(q.contains(i-1));
240          }          }
241          for (int i = 0; i < SIZE; i+=2) {          for (int i = 0; i < SIZE; i+=2) {
242              assertTrue(q.remove(new Integer(i)));              assertTrue(q.contains(i));
243              assertFalse(q.remove(new Integer(i+1)));              assertTrue(q.remove((Integer)i));
244                assertFalse(q.contains(i));
245                assertFalse(q.remove((Integer)(i+1)));
246                assertFalse(q.contains(i+1));
247          }          }
248          assertTrue(q.isEmpty());          assertTrue(q.isEmpty());
249      }      }

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8