Liking cljdoc? Tell your friends :D

midje.parsing.0-to-fact-form.formulas

Midje's special blend of generative-style testing.

Midje's special blend of generative-style testing.
raw docstring

*num-trials*clj

The number of trials generated per formula.

The number of trials generated per formula.
sourceraw docstring

around-formulacljmacro

(around-formula & body)
source

formulacljmacro

(formula docstring? opts-map? bindings & body)

Generative-style fact macro.

Ex. (formula "any two strings concatenated begins with the first" [a (gen/string) b (gen/string)] (str a b) => (has-prefix a))

Currently, we recommend you use generators from test.generative.generators.

opts-map keys:

:num-trials - Used to override the number of trials for this formula only. This is higher precedence than num-trials Must be set to a number 1 or greater.

The num-trials dynamic var determines how many facts are generated per formula.

Generative-style fact macro.

Ex. (formula "any two strings concatenated begins with the first"
      [a (gen/string) b (gen/string)]
      (str a b) => (has-prefix a))

Currently, we recommend you use generators from test.generative.generators.

opts-map keys:

   :num-trials - Used to override the number of trials for this formula only.
                 This is higher precedence than *num-trials*
                 Must be set to a number 1 or greater.

The *num-trials* dynamic var determines
how many facts are generated per formula.
sourceraw docstring

leaf-expect-arrowsclj

(leaf-expect-arrows nested-form)
source

leaves-contain-arrow?clj

(leaves-contain-arrow? nested-form)
source

with-num-trialscljmacro

(with-num-trials num-trials & formulas)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close