• 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

assert-predicate (clj)

(source)

function

(assert-predicate msg form)
Returns generic assertion code for any functional predicate. The 'expected' argument to 'report' will contains the original form, the 'actual' argument will contain the form with all its sub-forms evaluated. If the predicate returns false, the 'actual' form will be wrapped in (not...).

Examples