Liking cljdoc? Tell your friends :D

tupelo.test

Testing functions.

Testing functions.
raw docstring

*equality-digits-double=*clj/s

Default number of digits that must match for 2 Double values to be considerd 'equal'.

Default number of digits that must match for 2 Double values to be considerd 'equal'.
raw docstring

*equality-digits-float=*clj/s

Default number of digits that must match for 2 Float values to be considerd 'equal'.

Default number of digits that must match for 2 Float values to be considerd 'equal'.
raw docstring

check-isclj/smacro

(check-is & body)

check-isntclj/smacro

(check-isnt & body)

define-fixtureclj/smacro

(define-fixture mode interceptor-map)

deftestclj/smacro

(deftest & forms)

Alias for clojure.test/deftest

Alias for clojure.test/deftest
raw docstring

dospecclj/smacro

(dospec & body)

dotestclj/smacrodeprecated

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

dotest-focusclj/smacrodeprecated

(dotest-focus & body)

Alias for tupelo.test/deftest-focus

Alias for tupelo.test/deftest-focus 
raw docstring

isclj/smacro

(is & forms)

Equivalent to clojure.test/is.

Equivalent to clojure.test/is.
raw docstring

is-double=clj/smacro

(is-double= & forms)

Use (is-double= ...) instead of (is (rel= ... :digits digits-double=))

Use (is-double= ...) instead of (is (rel= ... :digits *digits-double=*))
raw docstring

is-float=clj/smacro

(is-float= & forms)

Use (is-float= ...) instead of (is (rel= ... :digits digits-float=))

Use (is-float= ...) instead of (is (rel= ... :digits *digits-float=*))
raw docstring

is-nonblank-lines=clj/smacro

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

is-nonblank=clj/smacro

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

is-set=clj/smacro

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

is=clj/smacro

(is= & forms)

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

Use (is= ...) instead of (is (= ...)) for clojure.test
raw docstring

isntclj/smacro

(isnt & forms)

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

Use (isnt ...) instead of (is (not ...)) for clojure.test
raw docstring

isnt-double=clj/smacro

(isnt-double= & forms)

Use (isnt-double= ...) instead of (is (rel= ... :digits digits-double=))

Use (isnt-double= ...) instead of (is (rel= ... :digits *digits-double=*))
raw docstring

isnt-float=clj/smacro

(isnt-float= & forms)

Use (isnt-float= ...) instead of (is (rel= ... :digits digits-float=))

Use (isnt-float= ...) instead of (is (rel= ... :digits *digits-float=*))
raw docstring

isnt=clj/smacro

(isnt= & forms)

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

Use (isnt= ...) instead of (is (not= ...)) for clojure.test
raw docstring

testingclj/smacro

(testing & forms)

Alias for clojure.test/testing

Alias for clojure.test/testing
raw docstring

throws-not?clj/smacro

(throws-not? & forms)

The opposite of (throws? ...)

The opposite of (throws? ...)
raw docstring

throws?clj/smacro

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

use-fixturesclj/smacro

(use-fixtures & forms)

Alias for clojure.test/use-fixtures

Alias for clojure.test/use-fixtures
raw docstring

verifyclj/smacro

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

verify-focusclj/smacro

(verify-focus & body)

Adds metadata ^:test-refresh/focus to tupelo.test/verify.

Adds metadata `^:test-refresh/focus` to tupelo.test/verify. 
raw docstring

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

× close