Package com.pogofish.jadt.samples.whathow

Examples of com.pogofish.jadt.samples.whathow.IntBinaryTreeUsage.max()


    }
   
    @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


   
    @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
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.