Method: PropCheck::Generators.printable_ascii_char
- Defined in:
- lib/prop_check/generators.rb
.printable_ascii_char ⇒ Object
Generates a single-character string from the printable ASCII character set.
Shrinks towards ‘ ’.
>> Generators.printable_ascii_char.sample(size: 10, rng: Random.new(42))
=> ["S", "|", ".", "g", "\\", "4", "r", "v", "j", "j"]
525 526 527 |
# File 'lib/prop_check/generators.rb', line 525 def printable_ascii_char one_of(*@@printable_ascii_chars.map(&method(:constant))) end |