cljs.test/assert-any
(assert-any msg form)
Source docstring:
Returns generic assertion code for any test, including macros, Java
method calls, or isolated symbols.
(defn assert-any
[msg form]
(let [{:keys [file line end-line column end-column]} (meta form)]
`(let [value# ~form]
(if value#
(report
{:type :pass, :message ~msg,
:file ~file :line ~line :end-line ~end-line :column ~column :end-column ~end-column
:expected '~form, :actual value#})
(report
{:type :fail, :message ~msg,
:file ~file :line ~line :end-line ~end-line :column ~column :end-column ~end-column
:expected '~form, :actual value#}))
value#)))