Implement cut
This was way easier than the book's version.
author |
Steve Losh <steve@stevelosh.com> |
date |
Sun, 05 Jun 2016 00:01:11 +0000 |
parents |
0b8e6d6401c2 |
children |
13136d4b4761 |
(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)
(sb-ext:exit :code (if *passed* 0 1))