• Libraries

  • Home

  • aero
  • async-flow-fx
  • bidi
  • blossom
  • buddy-core
  • buddy-sign
  • camel-snake-kebab
  • chime
  • clj-kondo
  • clojure
  • clojure.data.json
  • closeable-map
  • config
  • core.async
  • crypto-password
  • cuerdas
  • data.xml
  • devcards
  • digest
  • etaoin
  • fs
  • hiccup
  • hikari-cp
  • honeysql
  • http-fx
  • humanize
  • image-resizer
  • integrant
  • loom
  • migratus
  • next-jdbc
  • openai-clojure
  • postal
  • process
  • reitit-parent
  • ring
  • selmer
  • shadow-cljs-tailwind-jit
  • testcontainers-clj
  • tick
  • timbre
  • tools.cli
  • websocket-client

Library released under Flexiana license. Copyright 2024 Flexiana.

Visit Flexiana website

Public Vars

  • *initial-report-counters* (clj)
  • *load-tests* (clj)
  • *report-counters* (clj)
  • *stack-trace-depth* (clj)
  • *test-out* (clj)
  • *testing-contexts* (clj)
  • *testing-vars* (clj)
  • are (clj)
  • assert-any (clj)
  • assert-expr (clj)
  • assert-predicate (clj)
  • compose-fixtures (clj)
  • deftest (clj)
  • deftest- (clj)
  • do-report (clj)
  • file-position (clj)
  • function? (clj)
  • get-possibly-unbound-var (clj)
  • inc-report-counter (clj)
  • is (clj)
  • join-fixtures (clj)
  • report (clj)
  • run-all-tests (clj)
  • run-test (clj)
  • run-test-var (clj)
  • run-tests (clj)
  • set-test (clj)
  • successful? (clj)
  • test-all-vars (clj)
  • test-ns (clj)
  • test-var (clj)
  • test-vars (clj)
  • testing (clj)
  • testing-contexts-str (clj)
  • testing-vars-str (clj)
  • try-expr (clj)
  • use-fixtures (clj)
  • with-test (clj)
  • with-test-out (clj)
Back

is (clj)

(source)

macro

(is form) (is form msg)
Generic assertion macro. 'form' is any predicate test. 'msg' is an optional message to attach to the assertion. Example: (is (= 4 (+ 2 2)) "Two plus two should be 4") Special forms: (is (thrown? c body)) checks that an instance of c is thrown from body, fails if not; then returns the thing thrown. (is (thrown-with-msg? c re body)) checks that an instance of c is thrown AND that the message on the exception matches (with re-find) the regular expression re.

Examples