proptest-rs / proptest

Hypothesis-like property testing for Rust
Apache License 2.0
1.63k stars 152 forks source link

config: properly read environment #457

Open bmwill opened 4 weeks ago

bmwill commented 4 weeks ago

I noticed that when deriving Arbitrary for a type that contains a Vec, and then using it in a proptest generally led to panics with the range or size of the generated Vec being empty or 0..0. After some digging around (and actually reading some of the output warnings when running a test) I realized that the config initialization logic wasn't working as intended. This patch should address it.