(expect & forms)
Asserts (via #'clojure.test/is
) that the expression denoted by to-change
changes from from
, to to
.
The equality comparator can be overridden with with
.`.
(expect (swap! a inc) :to-change @a :from 1 :to 2)
Asserts (via `#'clojure.test/is`) that the expression denoted by `to-change` changes from `from`, to `to`. The equality comparator can be overridden with `with`.`. `(expect (swap! a inc) :to-change @a :from 1 :to 2)`
(macroexpansion= & xs)
Do all xs
equal, when deeming any contained gensyms unconditionally equal?
Adequate for when the presence of gensyms would hinder a comparison.
Do all `xs` equal, when deeming any contained gensyms unconditionally equal? Adequate for when the presence of gensyms would hinder a comparison.
(meta= & xs)
Do all xs
(and their metadata, and their members' metadata, and also any metametadata) equal?
Do all `xs` (and their metadata, and their members' metadata, and also any metametadata) equal?
(run-tests & namespaces)
Runs all tests for the given namespaces (defaulting to the current namespace if none given), printing the results.
When invoked under a cljs context, the Unix exit code will be set to 0 or 1, depending on success.
Runs all tests for the given namespaces (defaulting to the current namespace if none given), printing the results. When invoked under a cljs context, the Unix exit code will be set to 0 or 1, depending on success.
(simple= & vals)
Check whether all vals
have similar structure disregarding possible order
NOTE: this function will disregard duplicates
Check whether all `vals` have similar structure disregarding possible order NOTE: this function will disregard duplicates
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close