Liking cljdoc? Tell your friends :D

wing.test

Namespace providing testing facilities

Namespace providing testing facilities
raw docstring

assert-exceptioncljmacro

(assert-exception slingshot-bindings & body)

Macro for asserting on the shape of the data provided by ex-info. See slingshot.slingshot/try+ for more details on the bindings.

An example that would match:

(assert-exception [:type :foo] (throw (ex-info "Error" {:type :foo})))

Macro for asserting on the shape of the data provided by `ex-info`.
See `slingshot.slingshot/try+` for more details on the bindings.

An example that would match:

(assert-exception [:type :foo] (throw (ex-info "Error" {:type :foo})))
raw docstring

assert-matchcljmacro

(assert-match result match-pattern)

Macro which asserts that result matches the match-pattern, throwing an exception if it does not.

Macro which asserts that `result` matches the `match-pattern`, throwing an
exception if it does not.
raw docstring

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

× close