            .expect("item doesn't exist in output")
            .clone();
        out_score >= expected * 0.95 && out_score <= expected * 1.05
    })
}

pub fn n_results(n: usize) -> impl Predicate<[u8]> {
    predicates::function::function(move |x: &[u8]| str::from_utf8(x).unwrap().lines().count() == n)