1 (defvar *passed-tests* 0)
2 (defvar *failed-tests* 0)
3 (defvar *timestamp* nil)
5 (defmacro test (condition)
8 (write-line ,(concat "Test `" (prin1-to-string condition) "' passed"))
11 (write-line ,(concat "Test `" (prin1-to-string condition) "' failed."))
12 (incf *failed-tests*))))
14 (write-line "Running tests...")
17 (setq *timestamp* (get-internal-real-time))