-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase variety in characters() generation
- Loading branch information
Showing
7 changed files
with
127 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
RELEASE_TYPE: minor | ||
|
||
This release substantially increases the variety of examples from the | ||
:func:`~hypothesis.strategies.characters` strategy. | ||
|
||
Unicode characters used to be selected by codepoint alone, which made | ||
generation of some rare character types highly unlikely (:issue:`1401`). | ||
Character generation now selects a Unicode category - preferring letters | ||
to numbers to whitespace, and so on - then a code point within that category. | ||
|
||
If :func:`~hypothesis.strategies.text` is passed an alphabet which is not | ||
already a strategy, it will follow the same generation and shrinking order | ||
if possible. ``alphabet=None`` is now deprecated, and the default strategy | ||
is also the default value for the argument. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters