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

Function LSD_radix_sort_i32

tests/test_strings.rs:30–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29#[test]
30fn LSD_radix_sort_i32() {
31 let mut a: Vec<i32> = (0..10).rev().collect();
32 LSD::sort_i32(&mut a);
33 assert!(a.is_sorted());
34
35 let mut a = vec![1, 2, 3, -1, -2, -3];
36 LSD::sort_i32(&mut a);
37 assert!(a.is_sorted());
38}
39
40#[test]
41fn MSD_radix_sort() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected