Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
PartiallyTyped
· 3y ago · 0 comments
Technically you can do that with property based testing just fine, e.g. for all values outside boundaries ensure a throw. The goal of property based testing is to help you identify invariants in your code and then verify them.
Comments
[–]
sanderjd
3y ago
I just looked up Hypothesis in python and it does indeed look pretty cool for this kind of thing. I should try this more!
[–]
PartiallyTyped
OP
3y ago
The best part imho is the shrinking.