43 |
|
* constructor with array is of same size and has all elements |
44 |
|
*/ |
45 |
|
public void testConstructor2() { |
46 |
< |
int[] a = { 17, 3, -42, 99, -7}; |
46 |
> |
int[] a = { 17, 3, -42, 99, -7 }; |
47 |
|
AtomicIntegerArray ai = new AtomicIntegerArray(a); |
48 |
|
assertEquals(a.length, ai.length()); |
49 |
|
for (int i = 0; i < a.length; ++i) |
324 |
|
* toString returns current value. |
325 |
|
*/ |
326 |
|
public void testToString() { |
327 |
< |
int[] a = { 17, 3, -42, 99, -7}; |
327 |
> |
int[] a = { 17, 3, -42, 99, -7 }; |
328 |
|
AtomicIntegerArray ai = new AtomicIntegerArray(a); |
329 |
|
assertEquals(Arrays.toString(a), ai.toString()); |
330 |
|
} |