hypothesis — Easy Playground
Property-based testing: auto-generates edge-case test inputs
Getting started with hypothesisRun locally
Install
pip install hypothesisPython CodeRun locally
Expected Output
# Expected output shown below # (Run locally with: hypothesis)
hypothesis is a third-party package. Property-based testing: auto-generates edge-case test inputs. Install with: pip install hypothesis
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?