Liking cljdoc? Tell your friends :D

midje.checking.checkers.chatty

Checkers that explain more about a failure.

Checkers that explain more about a failure.
raw docstring

add-actualclj

(add-actual actual result)
source

as-chatty-checkerclj

(as-chatty-checker function)
source

assert-valid-function!clj

(assert-valid-function! f)
source

chatty-checkercljmacro

(chatty-checker [actual-arg] [f & args])

Create a function that returns either true or a description of a failure that shows the value of subexpressions. For example, consider this:

(fact 4 => (fn [actual] (< (h actual) (g actual))))

The failure message only tells you that 4 was a failing value. Contrast to the following:

(fact 4 => (chatty-checker [actual] (< (h actual) (g actual))))

The failure output will contain the value of (h actual) and (g actual).

For more, see (guide chatty-checkers).

Note: if you want your checkers to be and or or expressions, use every-checker or some-checker in preference to chatty-checker.

Create a function that returns either true or a description of a failure
 that shows the value of subexpressions. For example, consider this:

   (fact 4 => (fn [actual] (< (h actual) (g actual))))

The failure message only tells you that 4 was a failing value. Contrast
to the following:

   (fact 4 => (chatty-checker [actual] (< (h actual) (g actual))))

The failure output will contain the value of (h actual) and (g actual).

For more, see `(guide chatty-checkers)`.

Note: if you want your checkers to be `and` or `or` expressions, use
`every-checker` or `some-checker` in preference to `chatty-checker`.
sourceraw docstring

chatty-checker?clj

(chatty-checker? fn)
source

chatty-unteaseclj

(chatty-untease result-symbol arglist)
source

chatty-worth-reporting-on?clj

(chatty-worth-reporting-on? arg)
source

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

× close