test/run.lisp @ 07e1d5f315f5

Fix constant unification

How did I not notice this til now?  Jesus.  This is a mistake in the book that
the erratum pointed out and I read but somehow just ignored because I'm an
idiot.
author Steve Losh <steve@stevelosh.com>
date Sat, 09 Jul 2016 21:51:02 +0000
parents 13136d4b4761
children 23d4dc2900a1
(let ((*standard-output* (make-broadcast-stream)))
  (ql:quickload "bones-test"))


(defvar *passed* t)

(defun test (spec)
  (let ((result (5am:run spec)))
    (5am:explain! result)
    (when (not (5am:results-status result))
      (setf *passed* nil))))

(test :bones)
(test :bones.paip)
(test :bones.wam)
(test :bones.circle)

(let ((exit-code (if *passed* 0 1)))
  #+sbcl (sb-ext:exit :code exit-code)
  #+ccl (quit exit-code))