Guest User

Untitled

a guest
Jan 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. (defmacro are (form &rest forms)
  2. "Evaluate FORM, then a list of FORMS with should. If any return
  3. nil, abort the current test as failed.
  4.  
  5. Returns the value of the last form evaluated."
  6. (let ((result (make-symbol "result")))
  7. `(progn
  8. (setq ,result (should ,form))
  9. (unless (null ',forms)
  10. (setq ,result (are ,@forms)))
  11. ,result)))
Add Comment
Please, Sign In to add comment