tupelo.testy

Testing functions.

check-is

macro

(check-is & body)

check-isnt

macro

(check-isnt & body)

define-fixture

macro

(define-fixture mode interceptor-map)

deftest

macro

(deftest & forms)

dospec

macro

(dospec & body)

dotest

macro

(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)))

dotest-focus

macro

(dotest-focus & body)
Alias for tupelo.test/deftest-focus 

is

macro

(is & forms)
Equivalent to clojure.test/is.

is-nonblank-lines=

macro

(is-nonblank-lines= & forms)
Returns true if each line of each input string is equal treating all whitespace as equivalent.

is-nonblank=

macro

(is-nonblank= & forms)
Returns true if each input string is equal treating all whitespace as equivalent.

is-set=

macro

(is-set= & forms)
Converts each input collection to a set, then tests for equality.

is=

macro

(is= & forms)
Use (is= ...) instead of (is (= ...)) for clojure.test

isnt

macro

(isnt & forms)
Use (isnt ...) instead of (is (not ...)) for clojure.test

isnt=

macro

(isnt= & forms)
Use (isnt= ...) instead of (is (not= ...)) for clojure.test

testing

macro

(testing & forms)

throws-not?

macro

(throws-not? & forms)
The opposite of (throws? ...)

throws?

macro

(throws? & forms)
Use (throws? ...) instead of (is (thrown? ...)) for clojure.test. Usage:
(throws? (/ 1 0))   ; catches any Throwable