2 Comments

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.

Expand full comment