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

Function tournament_tree

tests/test_sort.rs:63–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61
62#[test]
63fn tournament_tree() {
64 let mut data = gen_vec_data();
65 for t in data.iter_mut() {
66 let t = sort::tree_selection::sort_desc(t);
67 assert!(t.iter().rev().is_sorted());
68 }
69}
70
71#[test]
72fn merge() {

Callers

nothing calls this directly

Calls 2

gen_vec_dataFunction · 0.85
sort_descFunction · 0.85

Tested by

no test coverage detected