Method: PropCheck::Generators.alphanumeric_char
- Defined in:
- lib/prop_check/generators.rb
permalink .alphanumeric_char ⇒ Object
Generates a single-character string containing one of a..z, A..Z, 0..9
Shrinks towards lowercase ‘a’.
>> Generators.alphanumeric_char.sample(5, size: 10, rng: Random.new(42))
=> ["M", "Z", "C", "o", "Q"]
498 499 500 |
# File 'lib/prop_check/generators.rb', line 498 def alphanumeric_char one_of(*@@alphanumeric_chars.map(&method(:constant))) end |