fixt 0.0.9

minimum viable fixtures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::prelude::*;

fixturator!(bool, false, crate::rng().gen(), {
    let mut index = get_fixt_index!();
    index += 1;
    set_fixt_index!(index);
    index % 2 != 0
});

basic_test!(
    bool,
    vec![false; 40],
    vec![true, false]
        .into_iter()
        .cycle()
        .take(20)
        .collect::<Vec<bool>>()
);