3 ms·
"While Python is usually great for programming puzzles, this step in particular is crying out for something like QuickCheck: without it, we'll have to roll our
by pmoriarty 7y ago
"While Python is usually great for programming puzzles, this step in particular is crying out for something like QuickCheck: without it, we'll have to roll our own."
Instead of rolling his own, the author could have just used Python's Hypothesis package.[1][2]
[1] - https://github.com/HypothesisWorks/hypothesis https://github.com/HypothesisWorks/hypothesis
[2] - https://pypi.org/project/hypothesis/ https://pypi.org/project/hypothesis/