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

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