You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
BurntSushi commentedon Apr 30, 2021
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.
orlp commentedon Apr 30, 2021
Does there exist an option to disable the shrinking (either globally or per testcase)?
BurntSushi commentedon Apr 30, 2021
Yes, albeit somewhat indirectly. You have to add wrapper types with trivial implementations of
Arbitrary. Thearbitrarymethod would just call the inner typesarbitrarymethod. And theshrinkmethod would just return nothing.Replace QuickCheck with an own propcheck utility
api: add a wrapper for disabling shrinking for an Arbitrary
api: add a wrapper for disabling shrinking for an Arbitrary