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;

#[derive(Arbitrary, Debug)]
struct TestInput {
    #[strategy(1..10u32)]
    x: u32,

    #[strategy(0..*#x)]
    y: u32,
}

fn main() {}