chickadee » test-generative » test-generative

(test-generative ((binding gen) ...) body ...)syntax

This allows you to declare a set of generators specified by gen and refer to them by names that are specified as bindings in your test code. It will exercise the code at most current-test-generative-iterations + 1 amount of times with your random data and stop as soon as one of your tests fails. If a test has failed it shows the iteration in which it failed and the seed-values that have been used in that iteration.

What is a generator?: A generator is just a thunk that is expected to return the data upon invokation.