Next: (veritas mock), Previous: (veritas container), Up: API
Generator combinators for the property-based testing subsystem. Every generator is a closure taking a random state, so the calling convention is always: (lambda (rand) ...). Sizes are picked inside the generator, which saves threading a size argument through the pipeline by hand.
Return a generator of printable ASCII characters, 32 to 126.
Return a generator of integers between 1 and max-bound (inclusive).
Call the generator with a random state:
(define gen (generate-integer #:max-bound 100)) (gen (seed->random-state 42))
Return a generator of lists whose elements come from elem-generator.
Lists are min-len to max-len long.
Return a generator of printable-ASCII strings.
Strings are min-len to max-len characters long.
Return a generator of lowercase symbols, min-len to max-len long.
Symbols stay unescaped because the characters are always a-z.