3 ms·
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
by PartiallyTyped 3y ago
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.
- sanderjd 3y agoI just looked up Hypothesis in python and it does indeed look pretty cool for this kind of thing. I should try this more!
- PartiallyTyped 3y agoThe best part imho is the shrinking.