DEV Community

Discussion on: From 1 to 10,000 test cases in under an hour: A beginner's guide to property-based testing

Collapse
individualit profile image
Artur Neumann
@settings(max_examples=10000)
def test_sort_this_list_properties(input_list):
    sorted_list = sorted(input_list)

shouldn't that be

@settings(max_examples=10000)
def test_sort_this_list_properties(input_list):
    sorted_list = sort_this_list(input_list)
Collapse
carolstran profile image
Carolyn Stransky Author

Good catch! The outcome is the same because all the sort_this_list function does is execute the built-in sorted function 😆 But for clarity, I'll update. Thanks!