*/
public class TestMemoryIntArray extends TestCase {
final Random _rand = new Random();
public void testApiBasics() {
MemoryIntArray array = new MemoryIntArray();
int length = array.length();
int anyIndex = _rand.nextInt(length);
onArray(array, anyIndex);
anyIndex = length + _rand.nextInt(length);
onArray(array, anyIndex);
assertTrue(length < array.length());
length = array.length();
anyIndex = length + _rand.nextInt(length);
onArray(array, anyIndex);
assertTrue(length < array.length());
length = array.length();
anyIndex = length + _rand.nextInt(length << 5);
onArray(array, anyIndex);
assertTrue(length < array.length());
}