[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.26, Tue Mar 15 19:47:06 2011 UTC revision 1.27, Fri May 27 19:14:39 2011 UTC
# Line 468  Line 468 
468          assertFalse(it.hasNext());          assertFalse(it.hasNext());
469      }      }
470    
   
471      /**      /**
472       * toString contains toStrings of elements       * toString contains toStrings of elements
473       */       */
# Line 476  Line 475 
475          LinkedList q = populatedQueue(SIZE);          LinkedList q = populatedQueue(SIZE);
476          String s = q.toString();          String s = q.toString();
477          for (int i = 0; i < SIZE; ++i) {          for (int i = 0; i < SIZE; ++i) {
478              assertTrue(s.indexOf(String.valueOf(i)) >= 0);              assertTrue(s.contains(String.valueOf(i)));
479          }          }
480      }      }
481    
# Line 555  Line 554 
554          assertNull(q.peekFirst());          assertNull(q.peekFirst());
555      }      }
556    
   
557      /**      /**
558       * peekLast returns next element, or null if empty       * peekLast returns next element, or null if empty
559       */       */

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

Doug Lea
ViewVC Help
Powered by ViewVC 1.0.8