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.
(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)))
Comments top
No comments for should. Log in to add a comment.