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

Function min_max

tests/test_rb_tree2.rs:98–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97#[test]
98fn min_max() {
99 let mut tree = Tree::default();
100 for v in 0..10 {
101 tree.insert(v, v);
102 }
103 assert_eq!(tree.min(), Some(&0));
104 assert_eq!(tree.max(), Some(&9));
105}
106
107#[test]
108fn keys() {

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected