(defntest f & test-pairs)Defines a series of tests for function f Each test-pair consists of args expected where args is a vector of arguments to f and expected is the expected return value of (apply f args)
Defines a series of tests for function f Each test-pair consists of args expected where args is a vector of arguments to f and expected is the expected return value of (apply f args)
(defntest-1 f & test-pairs)Defines a series of tests for 1-arity function f Each test-pair consists of arg expected where arg is a single argument to f and expected is the expected return value of (apply f [arg])
Defines a series of tests for 1-arity function f Each test-pair consists of arg expected where arg is a single argument to f and expected is the expected return value of (apply f [arg])
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 |