test-strategy 0.4.5

Procedural macro to easily write higher-order strategies in proptest.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use test_strategy::Arbitrary;
struct TestArgs {
    x_max: u32,
}
#[derive(Arbitrary, Debug, PartialEq)]
#[arbitrary(args = TestArgs)]
struct TestStruct {
    #[strategy(0..args.x_max)]
    x: u32,
}

fn main() {}