MCPcopy Create free account
hub / github.com/douchuan/algorithm / preorder_iter

Function preorder_iter

tests/test_tree_traverse.rs:59–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57
58#[test]
59fn preorder_iter() {
60 for (t, expect) in preorder_test_data() {
61 let tree: Tree<usize, usize> = TreeBuilder::build_in_level(t.as_slice());
62 let r = unsafe { PreOrderVisitor::iterate(&tree) };
63 assert_eq!(
64 expect, r,
65 "tree = {:?}, expect = {:?}, r = {:?}",
66 t, expect, r
67 );
68 }
69}
70
71#[test]
72fn preorder_morris() {

Callers

nothing calls this directly

Calls 1

preorder_test_dataFunction · 0.85

Tested by

no test coverage detected