cargo-mutants 27.0.0

Inject bugs and see if your tests catch them
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use cargo_mutants_testdata_relative_dependency::double_factorial;

#[test]
fn double_factorial_zero_is_2() {
    assert_eq!(double_factorial(0), 2);
}

#[test]
fn double_factorial_one_is_2() {
    assert_eq!(double_factorial(1), 2);
}

#[test]
fn double_factorial_two_is_4() {
    assert_eq!(double_factorial(2), 4);
}