0.8.13.25:
[sbcl.git] / tests / assertoid.lisp
index 0469450..0e76532 100644 (file)
 ;;;; absolutely no warranty. See the COPYING and CREDITS files for
 ;;;; more information.
 
-(cl:in-package :cl-user)
+(cl:defpackage "ASSERTOID"
+  (:use "CL")
+  (:export "GRAB-CONDITION" "RAISES-ERROR?" "ASSERTOID"))
+
+(cl:in-package "ASSERTOID")
 
 (defmacro grab-condition (&body body)
   `(nth-value 1
@@ -85,7 +89,7 @@
     (flet ((frob (evaloid)
                 (let ((result (funcall evaloid expr)))
                   (unless (funcall eval-expected-lambda result)
-                    (error "failed assertoid" expr))))
+                    (error "failed assertoid ~S" expr))))
           (compile-as-evaloid (optimizations)
              (lambda (expr)
               (funcall (compile nil