Namespace providing testing facilities
Namespace providing testing facilities
(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})))
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close