Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
misslibby
on Nov 19, 2022
|
parent
|
context
|
favorite
| on:
Solving puzzles with hypothesis
I don't understand what benefit the hypothesis library gives here? Why can't you just generate values without hypothesis and call the test function with your values "manually"?
alexmolas
on Nov 19, 2022
[–]
The cool thing is that hypothesis tries to build minimal examples that make your test fail.
misslibby
on Nov 19, 2022
|
parent
[–]
The magic is in the "strategies"? How does it do that? And does it have a memory between test runs?
epgui
on Nov 19, 2022
|
root
|
parent
[–]
Yes:
https://drops.dagstuhl.de/opus/volltexte/2020/13170/pdf/LIPI...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: