Closed SylwBar closed 3 years ago
In stateful PBT, the generator is a list of commands (each of them consisting of symbolic calls) and shrinking tries to produce a command sequence of minimal length. As you see in your example, it has done so.
The shrinking machinery in stateful PropEr has never taken the arguments of the commands into account, and there is no built-in support for shrinking them; the calls in the commands are symbolic anyway. If you really need this functionality, feel free to submit a PR that supports this.
Thank you for explanation. This feature is not very much needed right now so I'm closing issue.
Hi. I'm preparing new stateful model with Proper 1.4 and realized that shrinking is not applied in stateful models (or I don't know how to trigger it).
I prepared minimal program explaining problem:
For state-less property shrinking is working fine:
51 is minimal example.
Here is example output from statem:
Shrinking is working fine on sequences of commands i.e. - happy_f was removed from example. But argument to "tested_f" was not reduced - it is still 81. Is it intended behaviour? How I could trigger arguments shrinking in stateful models?
Regards Sylwester