In Praise of Property-Based Testing
Hi !
The problem with your code with Hypothesis is that you don't check anymore with assertions if the code is valid.
@given(
st.integers()
)
def test_inverse_of_hypothesis(value):
inverse_of(value)
This only triggers an error but it does not check the result anymore.
Thanks for your article.
Hi !
The problem with your code with Hypothesis is that you don't check anymore with assertions if the code is valid.
@given(
st.integers()
)
def test_inverse_of_hypothesis(value):
inverse_of(value)
This only triggers an error but it does not check the result anymore.
Thanks for your article.