Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by lgas

16 hours ago

QuickCheck also shrinks automatically and preserves invariants though?

2 comments

lgas

Reply

sunshowers  4 hours ago

No, QuickCheck very importantly does not shrink automatically. You have to write the shrinker yourself. Hypothesis, Hedgehog, proptest and a few others shrink automatically.

valcron1000  5 hours ago

Yes, but instances require the user to provide shrinking while Hypothesis does not: shrinking is derived automatically.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities