示例#1
0
  @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);
  }
示例#2
0
 @Test
 public void testPostOrder() {
   List<Tree> lst = TreeUtils.postOrder(src);
   Iterator<Tree> it = TreeUtils.postOrderIterator(src);
   compareListIterator(lst, it);
 }