Liking cljdoc? Tell your friends :D

hara.test.form


=>clj


arrowsclj


collectclj

(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
raw docstring

factcljmacro

(fact & [desc? & body])

top level macro for test definitions

top level macro for test definitions
raw docstring

factscljmacro

(facts & more)

top level macro for test definitions

top level macro for test definitions
raw docstring

skipclj

(skip meta)

returns the form with no ops evaluated

returns the form with no ops evaluated
raw docstring

splitclj

(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}}])
raw docstring

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

× close