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

Comparing jsr166/src/test/tck/AtomicIntegerTest.java (file contents):
Revision 1.6 by dl, Sat Dec 27 19:26:43 2003 UTC vs.
Revision 1.8 by dl, Fri Jan 9 20:07:36 2004 UTC

# Line 27 | Line 27 | public class AtomicIntegerTest extends J
27      }
28  
29      /**
30 <     * default constructed intializes to zero
30 >     * default constructed initializes to zero
31       */
32      public void testConstructor2(){
33          AtomicInteger ai = new AtomicInteger();
# Line 198 | Line 198 | public class AtomicIntegerTest extends J
198          }
199      }
200  
201 +    /**
202 +     * toString returns current value.
203 +     */
204 +    public void testToString() {
205 +        AtomicInteger ai = new AtomicInteger();
206 +        for (int i = -12; i < 6; ++i) {
207 +            ai.set(i);
208 +            assertEquals(ai.toString(), Integer.toString(i));
209 +        }
210 +    }
211  
212   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines