proptest

Module char

Source
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§

Constants§

Functions§

  • Creates a CharStrategy which picks from literally any character, with the default biases.
  • Creates a CharStrategy which selects characters within the given endpoints, inclusive, using the default biases.
  • Creates a CharStrategy which selects characters within the given ranges, all inclusive, using the default biases.
  • Selects a random character the way CharStrategy does.