gfredericks / test.chuck

A utility library for test.check
Eclipse Public License 1.0
214 stars 26 forks source link

Create a prop that's like `for` #61

Open lvh opened 5 years ago

lvh commented 5 years ago

I grabbed the title out of a TODO referencing this code in regexes-test:

(prop/for-all [[re s] (gen'/for [re-s (gen/elements generator-regression-cases)
                                   :let [re (re-pattern re-s)]
                                   s (regexes/gen-string-from-regex re)]
                          [re s])]
    (re-matches re s))

Figured it should be a ticket instead :)

gfredericks commented 5 years ago

yeah that sounds fine :)