Welcome! Please see the About page for a little more info on how this works.

+1 vote
in test.check by

A regular expression is a succinct and flexible way to describe a set of strings. It would be useful to have generator that takes a regular expression and generates matching strings.

There was some hallway discussion about this feature request at the Clojure Conj in November 2014.

3 Answers

0 votes
by

Comment made by: steveminer@gmail.com

https://github.com/gfredericks/test.chuck recently added string-from-regex. That's a good work-around for most users.

0 votes
by

Comment made by: steveminer@gmail.com

https://github.com/miner/herbert recently added a new implementation of a string from regex generator (in v0.6.7). Herbert supports a more limited regex syntax than the generator from test.chuck, but it has no dependencies on other libraries so it can more easily be adopted in a contrib library.

0 votes
by
Reference: https://clojure.atlassian.net/browse/TCHECK-60 (reported by steveminer@gmail.com)
...