test.check has a built in generator gen/string-alphanumeric
but it does not have a gen/string-alpha. How do I make a generator that will make strings only composed of letters and no numbers?
How do I write a generator to make an alpha string using test.check?
121 Views Asked by triplej At
2
There are 2 best solutions below
0
On
test.chuck has a generator, string-from-regex that will prove useful in generating strings that match any desired regular expression.
You can use gen/char-alpha with gen/fmap to make a string.
If you need to use this a lot, I recommend binding it. Example: