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

Function t_verify

src/tree/binary/rb2.rs:429–438  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

427
428#[test]
429fn t_verify() {
430 let mut tree = Tree::default();
431 for v in 0..100 {
432 tree.insert(v, v);
433 }
434
435 assert!(bst::is_bst(tree.root, None, None));
436 assert!(is23(tree.root, tree.root));
437 assert!(is_balance(tree.root));
438}
439
440#[test]
441fn t_calc_size() {

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected