sorting 1.2.0

The world's best, finest and inefficient sorting algorithms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
extern crate sorting;

use sorting::*;

#[test]
fn sorts_correctly() {
    let mut unsorted_vec = vec![1, 2, 4, 3, 23, 6, 12, 0];
    unsorted_vec.bogosort();

    assert_eq!(unsorted_vec, vec![0, 1, 2, 3, 4, 6, 12, 23]);
}