[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.20, Fri Nov 5 00:17:22 2010 UTC revision 1.21, Thu Nov 18 20:21:53 2010 UTC
# Line 391  Line 391 
391      public void testRemoveElement() {      public void testRemoveElement() {
392          ArrayDeque q = populatedDeque(SIZE);          ArrayDeque q = populatedDeque(SIZE);
393          for (int i = 1; i < SIZE; i+=2) {          for (int i = 1; i < SIZE; i+=2) {
394              assertTrue(q.remove(new Integer(i)));              assertTrue(q.contains(i));
395                assertTrue(q.remove(i));
396                assertFalse(q.contains(i));
397                assertTrue(q.contains(i-1));
398          }          }
399          for (int i = 0; i < SIZE; i+=2) {          for (int i = 0; i < SIZE; i+=2) {
400              assertTrue(q.remove(new Integer(i)));              assertTrue(q.contains(i));
401              assertFalse(q.remove(new Integer(i+1)));              assertTrue(q.remove(i));
402                assertFalse(q.contains(i));
403                assertFalse(q.remove(i+1));
404                assertFalse(q.contains(i+1));
405          }          }
406          assertTrue(q.isEmpty());          assertTrue(q.isEmpty());
407      }      }

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8