assertTrue(Arrays.equals(new char[0], ret));
ret = Arrays.copyOf(emptyArray, 5);
assertEquals(5, ret.length);
for (; i < ret.length; i++) {
assertEquals((char) 0, ret[i]);
<BUG>}
}</BUG>
public void testCopyOfDouble() {
double[] a1 = {0.5, 1.25, -7., 0., 3.75, 101, 0.25, 33.75};
double[] ret = Arrays.copyOf(a1, a1.length);

assertTrue(Arrays.equals(new char[0], ret));
ret = Arrays.copyOf(emptyArray, 5);
assertEquals(5, ret.length);
for (; i < ret.length; i++) {
assertEquals((char) 0, ret[i]);
}
ret = Arrays.copyOf(new char[] {1, 2}, 3);
assertTrue(Arrays.equals(new char[] {1, 2, 0}, ret));
}
public void testCopyOfDouble() {
double[] a1 = {0.5, 1.25, -7., 0., 3.75, 101, 0.25, 33.75};
double[] ret = Arrays.copyOf(a1, a1.length);
