Open orlp opened 3 years ago
Thanks for the easy reproduction.
The shrinking algorithm is recursive. I don't personally have any plans to work on fixing that (I don't know off-hand how hard that would be), but if someone wanted to submit a patch for it, that would be great.
Does there exist an option to disable the shrinking (either globally or per testcase)?
Yes, albeit somewhat indirectly. You have to add wrapper types with trivial implementations of Arbitrary
. The arbitrary
method would just call the inner types arbitrary
method. And the shrink
method would just return nothing.
The following code causes
quickcheck
to stack overflow on trying to shrink the testcase.