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

Function inorder_iter

tests/test_tree_traverse.rs:98–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97#[test]
98fn inorder_iter() {
99 for (t, expect) in inorder_test_data() {
100 let tree: Tree<usize, usize> = TreeBuilder::build_in_level(t.as_slice());
101 let r = unsafe { InOrderVisitor::iterate(&tree) };
102 assert_eq!(
103 expect, r,
104 "tree = {:?}, expect = {:?}, r = {:?}",
105 t, expect, r
106 );
107 }
108}
109
110#[test]
111fn inorder_recursive() {

Callers

nothing calls this directly

Calls 1

inorder_test_dataFunction · 0.85

Tested by

no test coverage detected