Skip to content
Turtle Kitty edited this page Aug 9, 2015 · 2 revisions

assert

This operator tests a predicate and throws an error if it returns false.

(def x 1)

(assert (+ x 1))
-> true

(assert (- x 1))
-> ERROR (assertion-failed (- x 1))
Clone this wiki locally