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

Comparing jsr166/src/test/extra166y/ParallelArrayAsListTest.java (file contents):
Revision 1.6 by jsr166, Sat Oct 16 16:38:37 2010 UTC vs.
Revision 1.9 by jsr166, Sat Nov 26 05:19:17 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   * Other contributors include Andrew Wright, Jeffrey Hayes,
6   * Pat Fisher, Mike Judd.
7   */
# Line 13 | Line 13 | import jsr166y.*;
13   import extra166y.*;
14   import java.io.*;
15  
16 < public class ParallelArrayAsListTest extends JSR166TestCase{
16 > public class ParallelArrayAsListTest extends JSR166TestCase {
17  
18      public static void main(String[] args) {
19          junit.textui.TestRunner.run(suite());
# Line 322 | Line 322 | public class ParallelArrayAsListTest ext
322          }
323  
324          List s = a.subList(2, 5);
325 <        assertEquals(s.size(), 3);
325 >        assertEquals(3, s.size());
326          s.set(2, m1);
327          assertEquals(a.get(4), m1);
328          s.clear();
329 <        assertEquals(a.size(), 7);
329 >        assertEquals(7, a.size());
330      }
331  
332      // Exception tests

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines