cargo-mutants 27.0.0

Inject bugs and see if your tests catch them
1
2
3
4
5
6
7
8
use cargo_mutants_testdata_dependency::factorial;

pub fn double_factorial(n: i32) -> u32 {
    if n < 0 {
        return 0;
    }
    2 * factorial(n.try_into().unwrap())
}