• (should form)
  • (should form message)
Evaluate expression and throw an exception if it is not logical
true. Second arg can be a string with additional message,
or a map including :message plus any other information you
want to pass to the handler.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source circumspec/should.clj:110 top

(defmacro should
  "Evaluate expression and throw an exception if it is not logical
   true. Second arg can be a string with additional message,
   or a map including :message plus any other information you
   want to pass to the handler."
  ([form]
     `(should ~form nil))
  ([form message]
     `~(should-body form message)))
Vars in circumspec.should/should: defmacro concat list seq
Used in 0 other vars

Comments top

No comments for should. Log in to add a comment.