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

Comparing jsr166/src/test/tck/TreeSubMapTest.java (file contents):
Revision 1.13 by jsr166, Sat Oct 9 19:30:35 2010 UTC vs.
Revision 1.15 by jsr166, Fri May 27 19:10:32 2011 UTC

# Line 1 | Line 1
1   /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at
4 < * http://creativecommons.org/licenses/publicdomain
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6  
7   import junit.framework.*;
# Line 376 | Line 376 | public class TreeSubMapTest extends JSR1
376          NavigableMap map = map5();
377          String s = map.toString();
378          for (int i = 1; i <= 5; ++i) {
379 <            assertTrue(s.indexOf(String.valueOf(i)) >= 0);
379 >            assertTrue(s.contains(String.valueOf(i)));
380          }
381      }
382  
# Line 937 | Line 937 | public class TreeSubMapTest extends JSR1
937          NavigableMap map = dmap5();
938          String s = map.toString();
939          for (int i = 1; i <= 5; ++i) {
940 <            assertTrue(s.indexOf(String.valueOf(i)) >= 0);
940 >            assertTrue(s.contains(String.valueOf(i)));
941          }
942      }
943  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines