(collect meta results)makes sure that all returned verified results are true (->> (split '[(+ 1 1) => 2 (+ 1 2) => 3]) (mapv process/process) (collect {})) => true
makes sure that all returned verified results are true
(->> (split '[(+ 1 1) => 2
(+ 1 2) => 3])
(mapv process/process)
(collect {}))
=> true(fact & [desc? & body])top level macro for test definitions
top level macro for test definitions
(facts & more)top level macro for test definitions
top level macro for test definitions
(skip meta)returns the form with no ops evaluated
returns the form with no ops evaluated
(split body)(split [x y z & more :as arr] out)creates a sequence of pairs from a loose sequence (split '[(def a 1) (+ a 3) => 5]) (contains-in '[{:type :form, :meta {:line 8, :column 12}, :form '(def a 1)} {:type :test-equal, :meta {:line 9, :column 12}, :input {:form '(+ a 3)}, :output {:form 5}}])
creates a sequence of pairs from a loose sequence
(split '[(def a 1)
(+ a 3)
=> 5])
(contains-in '[{:type :form,
:meta {:line 8, :column 12},
:form '(def a 1)}
{:type :test-equal,
:meta {:line 9, :column 12},
:input {:form '(+ a 3)},
:output {:form 5}}])cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |