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

Function inorder_recursive

tests/test_tree_traverse.rs:111–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109
110#[test]
111fn inorder_recursive() {
112 for (t, expect) in inorder_test_data() {
113 let tree: Tree<usize, usize> = TreeBuilder::build_in_level(t.as_slice());
114 let r = unsafe { InOrderVisitor::recursive(&tree) };
115 assert_eq!(
116 expect, r,
117 "tree = {:?}, expect = {:?}, r = {:?}",
118 t, expect, r
119 );
120 }
121}
122
123#[test]
124fn postorder_recursive() {

Callers

nothing calls this directly

Calls 1

inorder_test_dataFunction · 0.85

Tested by

no test coverage detected