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

Comparing jsr166/src/test/tck/AtomicLongTest.java (file contents):
Revision 1.7 by dl, Mon Dec 29 19:05:40 2003 UTC vs.
Revision 1.8 by dl, Fri Jan 9 20:07:36 2004 UTC

# Line 198 | Line 198 | public class AtomicLongTest extends JSR1
198          }
199      }
200  
201 +    /**
202 +     * toString returns current value.
203 +     */
204 +    public void testToString() {
205 +        AtomicLong ai = new AtomicLong();
206 +        for (long i = -12; i < 6; ++i) {
207 +            ai.set(i);
208 +            assertEquals(ai.toString(), Long.toString(i));
209 +        }
210 +    }
211   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines