Fantastic Bugs (and how I find them)
summary
Uses property-based testing (Hypothesis) and the Hypothesis ghostwriter with pytest to generate inputs and find real failures: sorted() misbehaves with NaN/infinities, list equality relies on element identity causing surprising json round‑trip inequality, range(len) overflows on extremely large ranges, json encoder’s allow_nan option and non‑finite numbers break round trips, Decimal’s signaling NaNs are unhashable, and a generated Python source fuzz finds parser segfaults — demonstrates concrete tests, code snippets, and debugging steps that reproduce each bug.
AI-written summary · about
