Liking cljdoc? Tell your friends :D
Clojure only.

hara.test.checker.logic


allclj

(all & cks)

checker that allows and composition of checkers

(mapv (all even? #(< 3 %)) [1 2 3 4 5]) => [false false false true false]

checker that allows `and` composition of checkers

(mapv (all even? #(< 3 %))
      [1 2 3 4 5])
=> [false false false true false]
raw docstring

anyclj

(any & cks)

checker that allows or composition of checkers

(mapv (any even? 1) [1 2 3 4 5]) => [true true false true false]

checker that allows `or` composition of checkers

(mapv (any even? 1)
      [1 2 3 4 5])
=> [true true false true false]
raw docstring

is-notclj

(is-not ck)
(is-not ck function)

checker that allows negative composition of checkers

(mapv (is-not even?) [1 2 3 4 5]) => [true false true false true]

checker that allows negative composition of checkers

(mapv (is-not even?)
      [1 2 3 4 5])
=> [true false true false true]
raw docstring

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

× close