Testing functions.
Testing functions.
(deftest & forms)
Alias for clojure.test/deftest
Alias for clojure.test/deftest
(dotest & body)
Like clojure.test/deftest, but doesn't require a test name. Usage:
(ns xyz.. (:use tupelo.test))
(dotest (is= 5 (+ 2 3)) ; contraction of (is (= ...)) (isnt false) ; contraction of (is (not ...)) (set= [1 2 3] [3 2 1]) ; set equality semantics (throws? (/ 1 0)))
Like clojure.test/deftest, but doesn't require a test name. Usage: (ns xyz.. (:use tupelo.test)) (dotest (is= 5 (+ 2 3)) ; contraction of (is (= ...)) (isnt false) ; contraction of (is (not ...)) (set= [1 2 3] [3 2 1]) ; set equality semantics (throws? (/ 1 0)))
(dotest-focus & body)
Alias for tupelo.test/deftest-focus
Alias for tupelo.test/deftest-focus
(is & forms)
Equivalent to clojure.test/is.
Equivalent to clojure.test/is.
(is-nonblank-lines= & forms)
Returns true if each line of each input string is equal treating all whitespace as equivalent.
Returns true if each line of each input string is equal treating all whitespace as equivalent.
(is-nonblank= & forms)
Returns true if each input string is equal treating all whitespace as equivalent.
Returns true if each input string is equal treating all whitespace as equivalent.
(is-set= & forms)
Converts each input collection to a set, then tests for equality.
Converts each input collection to a set, then tests for equality.
(is= & forms)
Use (is= ...) instead of (is (= ...)) for clojure.test
Use (is= ...) instead of (is (= ...)) for clojure.test
(isnt & forms)
Use (isnt ...) instead of (is (not ...)) for clojure.test
Use (isnt ...) instead of (is (not ...)) for clojure.test
(isnt= & forms)
Use (isnt= ...) instead of (is (not= ...)) for clojure.test
Use (isnt= ...) instead of (is (not= ...)) for clojure.test
(testing & forms)
Alias for clojure.test/testing
Alias for clojure.test/testing
(throws-not? & forms)
The opposite of (throws? ...)
The opposite of (throws? ...)
(throws? & forms)
Use (throws? ...) instead of (is (thrown? ...)) for clojure.test. Usage: (throws? (/ 1 0)) ; catches any Throwable
Use (throws? ...) instead of (is (thrown? ...)) for clojure.test. Usage: (throws? (/ 1 0)) ; catches any Throwable
(verify & body)
Like clojure.test/deftest, but doesn't require a test name. Usage:
(ns xyz.. (:use tupelo.test))
(verify (is= 5 (+ 2 3)) ; contraction of (is (= ...)) (isnt false) ; contraction of (is (not ...)) (set= [1 2 3] [3 2 1]) ; set equality semantics (throws? (/ 1 0)))
Like clojure.test/deftest, but doesn't require a test name. Usage: (ns xyz.. (:use tupelo.test)) (verify (is= 5 (+ 2 3)) ; contraction of (is (= ...)) (isnt false) ; contraction of (is (not ...)) (set= [1 2 3] [3 2 1]) ; set equality semantics (throws? (/ 1 0)))
(verify-focus & body)
Adds metadata ^:test-refresh/focus
to tupelo.test/verify.
Adds metadata `^:test-refresh/focus` to tupelo.test/verify.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close