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

Function quick3way

tests/test_strings.rs:69–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68#[test]
69fn quick3way() {
70 // empty
71 let mut data: Vec<&str> = vec![];
72 Quick3Way::sort(&mut data);
73 assert!(data.is_sorted());
74
75 // normal
76 let i = SHELLS;
77 let mut data = extract_words(i);
78 Quick3Way::sort(&mut data);
79 assert!(data.is_sorted());
80}
81
82// also fine for sorted data
83#[test]

Callers

nothing calls this directly

Calls 2

extract_wordsFunction · 0.70
sortFunction · 0.50

Tested by

no test coverage detected