Package krati.core.array.basic

Examples of krati.core.array.basic.MemoryIntArray


*/
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());
    }
View Full Code Here

TOP

Related Classes of krati.core.array.basic.MemoryIntArray

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.