Hypothesis: Property-Based Testing for Python
Authors/Creators
- 1. Imperial College London
- 2. Australian National University
Description
Did you know that of the 2^64 possible floating-point numbers, 2^53 of them are "nan" - and Python prints them all the same way?
While nans usually have all zeros in the sign bit and mantissa, this isn't always true, and 'signaling' nans might trap or error. To help distinguish such errors in e.g. CI logs, Hypothesis now prints "-nan" for negative nans, and adds a comment like "# Saw 3 signaling NaNs" if applicable.
The canonical version of these notes (with links) is on readthedocs.
Notes
Files
HypothesisWorks/hypothesis-hypothesis-python-6.26.0.zip
Files
(9.6 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:532d84ca50161558823c468ae325ac5c
|
9.6 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/HypothesisWorks/hypothesis/tree/hypothesis-python-6.26.0 (URL)