Fix bug in defalut handling of IS macro
authorMarco Baringer <mb@bese.it>
Thu, 2 Feb 2006 11:12:38 +0000 (12:12 +0100)
committerMarco Baringer <mb@bese.it>
Thu, 2 Feb 2006 11:12:38 +0000 (12:12 +0100)
src/check.lisp

index 1bab17d..8641302 100644 (file)
@@ -147,16 +147,14 @@ Wrapping the TEST form in a NOT simply preducse a negated reason string."
          (setf bindings (list (list v ?value))
                effective-test `(,?satisfies ,v)
                default-reason-args (list "~S did not satisfy ~S" v `',?satisfies)))
-        (t
+        (_?
          (setf bindings '()
                effective-test test
-               default-reason-args "No reason supplied.")))
+               default-reason-args (list "No reason supplied."))))
       `(let ,bindings
          (if ,effective-test
              (add-result 'test-passed :test-expr ',test)
-             (process-failure :reason ,(if (null reason-args)
-                                           `(format nil ,@default-reason-args)
-                                           `(format nil ,@reason-args))
+             (process-failure :reason (format nil ,@(or reason-args default-reason-args))
                               :test-expr ',test))))))
 
 ;;;; *** Other checks