(index ("current-test-generative-iterations" 0) ("test-generative" 443))
(def (sig (parameter "current-test-generative-iterations" (id current-test-generative-iterations))) (p "The number of iterations each test shall use. This means that this amout of random inputs will be chosen to exercise your test code. This also means that your test code will be run at least that amount of times. That's why you probably want to avoid side-effecting code with these kinds of tests. The current default is '" (i "100") "."))
(def (sig (syntax "(test-generative ((binding gen) ...) body ...)" (id test-generative))) (p "This allows you to declare a set of generators specified by " (b "gen") " and refer to them by names that are specified as " (b "binding") "s in your test code. It will exercise the code at most " (b "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.") (p (b "What is a generator?:") " A generator is just a thunk that is expected to return the data upon invokation."))
