Package com.pogofish.jadt.samples.whathow

Examples of com.pogofish.jadt.samples.whathow.IntBinaryTreeUsage


* @author jiry
*/
public class IntBinaryTreeUsageTest {
    @Test
    public void testExampleCreate() {
        final IntBinaryTreeUsage usage = new IntBinaryTreeUsage();
        assertEquals(_Node(42, _Node(12, _EmptyTree(), _EmptyTree()), _Node(103, _EmptyTree(), _Node(110, _EmptyTree(), _EmptyTree()))), usage.createExample());
    }
View Full Code Here


        assertEquals(_Node(42, _Node(12, _EmptyTree(), _EmptyTree()), _Node(103, _EmptyTree(), _Node(110, _EmptyTree(), _EmptyTree()))), usage.createExample());
    }
   
    @Test
    public void testMax() {
        final IntBinaryTreeUsage usage = new IntBinaryTreeUsage();
        assertEquals(null, usage.max(_EmptyTree()));
        assertEquals(Integer.valueOf(110), usage.max(_Node(42, _Node(12, _EmptyTree(), _EmptyTree()), _Node(103, _EmptyTree(), _Node(110, _EmptyTree(), _EmptyTree())))));
    }
View Full Code Here

TOP

Related Classes of com.pogofish.jadt.samples.whathow.IntBinaryTreeUsage

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.