MCPcopy Index your code
hub / github.com/douchuan/algorithm / repeat_insert

Function repeat_insert

tests/test_rb_tree2.rs:45–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44#[test]
45fn repeat_insert() {
46 let mut tree = Tree::default();
47 for v in "ACEHLMPRSX".chars() {
48 tree.insert(v, v);
49 }
50
51 //重复insert 'A'
52 tree.insert('A', 'A');
53
54 let r = unsafe { PreOrderVisitor::iterate(&tree) };
55 assert_eq!(r.iter().collect::<String>(), "HCAERMLPXS");
56}
57
58#[test]
59fn delete_min() {

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected