proptest-rs / proptest

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

Fix re-complication of initial state #418

Closed timstobal closed 5 months ago

timstobal commented 5 months ago

This PR fixes an issue where, after the initial state in a state machine test has been simplified, it will not be re-complicated when this results in a successful run. As a result, when this situation is encountered, the test will report a "minimal failing input" that is actually a successful input - the input that is just barely simpler than the minimal failing input.

I've also added a proptest that detects the failure, along with two regression seeds, for good measure.