@Test public void testPostOrder3() { Tree big = TreeIoUtils.fromXml(getClass().getResourceAsStream(DUMMY_BIG)); List<Tree> lst = TreeUtils.postOrder(big); Iterator<Tree> it = TreeUtils.postOrderIterator(big); compareListIterator(lst, it); }
@Test public void testPostOrder() { List<Tree> lst = TreeUtils.postOrder(src); Iterator<Tree> it = TreeUtils.postOrderIterator(src); compareListIterator(lst, it); }