Research index
HypothesisWorks/hypothesis: Hypothesis for Python - version 4.28.1
MacIver, Hatfield-Dodds, Bot and 27 others
Zenodo (CERN European Organization for Nuclear Research)12 Jul 2019Open access
NobleIDark:/48914/w1/20260516/84B47256DOI10.5281/zenodo.3333374
HypothesisWorks/hypothesis: Hypothesis for Python - version 4.28.1
MacIver, Hatfield-Dodds, Bot and 27 others · Zenodo (CERN European Organization for Nuclear Research) · 2019
NobleIDark:/48914/w1/20260516/84B47256DOI10.5281/zenodo.3333374
Free to read at the publisher
You can read the abstract here, or the full text at the publisher.
Abstract
This patch improves the behaviour of the "text()" strategy when passed an "alphabet" which is not a strategy. The value is now interpreted as "whitelist_characters" to "characters()" instead of a sequence for "sampled_from()", which standardises the distribution of examples and the shrinking behaviour. You can get the previous behaviour by using "lists(sampled_from(alphabet)).map("".map)" instead. The canonical version of these notes (with links) is on readthedocs.