Examples of linkVariant()


Examples of com.tinysgf.SGFTree.linkVariant()

    public void testCollection() {
        SGFTree collection = new SGFTree();
        int root1 = collection.newNode();
        int root2 = collection.newNode();
        collection.linkVariant(root1, root2);
        assertEquals(SGFTree.ROOT, root1);
        assertEquals(SGFTree.NULL, collection.getPrev(root1));
        assertEquals(SGFTree.NULL, collection.getPrev(root2));
        assertEquals(root2, collection.getNextVariant(root1));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.