Package org.teavm.classlib.support

Examples of org.teavm.classlib.support.Support_ListTest


    public void test_Constructor() {
        Vector<Integer> tv = new Vector<>(100);
        for (int i = 0; i < 100; i++) {
            tv.addElement(i);
        }
        new Support_ListTest(tv).runTest();

        tv = new Vector<>(200);
        for (int i = -50; i < 150; i++) {
            tv.addElement(i);
        }
        new Support_ListTest(tv.subList(50, 150)).runTest();

        Vector<String> v = new Vector<>();
        assertEquals("Vector creation failed", 0, v.size());
        assertEquals("Wrong capacity", 10, v.capacity());
    }
View Full Code Here

TOP

Related Classes of org.teavm.classlib.support.Support_ListTest

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.