Expand description
Strategies for generating char values.
Unlike most strategies in Proptest, character generation is by default biased to particular values known to be difficult to handle in various circumstances.
The main things of interest are any() to generate truly arbitrary
characters, and range() and ranges() to select characters from
inclusive ranges.
Structs§
- Char
Strategy - Strategy for generating
chars. - Char
Value Tree - The
ValueTreecorresponding toCharStrategy.
Constants§
- DEFAULT_
PREFERRED_ RANGES - A default sequence of ranges used preferentially when generating random characters.
- DEFAULT_
SPECIAL_ CHARS - A default set of characters to consider as “special” during character generation.
Functions§
- any
- Creates a
CharStrategywhich picks from literally any character, with the default biases. - range
- Creates a
CharStrategywhich selects characters within the given endpoints, inclusive, using the default biases. - ranges
- Creates a
CharStrategywhich selects characters within the given ranges, all inclusive, using the default biases. - select_
char - Selects a random character the way
CharStrategydoes.