ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ConcurrentSkipListSetTest.java
(Generate patch)

Comparing jsr166/src/test/tck/ConcurrentSkipListSetTest.java (file contents):
Revision 1.21 by jsr166, Thu Apr 14 22:55:08 2011 UTC vs.
Revision 1.22 by jsr166, Fri May 27 19:21:27 2011 UTC

# Line 269 | Line 269 | public class ConcurrentSkipListSetTest e
269          assertNull(q.pollFirst());
270      }
271  
272
272      /**
273       * remove(x) removes x and returns true if present
274       */
# Line 366 | Line 365 | public class ConcurrentSkipListSetTest e
365          }
366      }
367  
369
370
368      /**
369       * lower returns preceding element
370       */
# Line 509 | Line 506 | public class ConcurrentSkipListSetTest e
506          assertFalse(it.hasNext());
507      }
508  
512
509      /**
510       * toString contains toStrings of elements
511       */
# Line 517 | Line 513 | public class ConcurrentSkipListSetTest e
513          ConcurrentSkipListSet q = populatedSet(SIZE);
514          String s = q.toString();
515          for (int i = 0; i < SIZE; ++i) {
516 <            assertTrue(s.indexOf(String.valueOf(i)) >= 0);
516 >            assertTrue(s.contains(String.valueOf(i)));
517          }
518      }
519  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines