X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Feval.impure.lisp;h=6b22474a14be396dd74188bcb7959f972f30b64f;hb=1714224f33ba559eab11af8827a78f9a5aebd698;hp=f48801e865631e47b2fd7b9097de5a234718a438;hpb=e6548115817f37831f7fa966d9b723dc3f12b2a0;p=sbcl.git diff --git a/tests/eval.impure.lisp b/tests/eval.impure.lisp index f48801e..6b22474 100644 --- a/tests/eval.impure.lisp +++ b/tests/eval.impure.lisp @@ -124,5 +124,17 @@ (error () :ok) (:no-error (c) (error "MAKE-PACKAGE succeeded: ~S" c))) +;;; FUNCTION +(defun function-eq-test () + 'ok) +(trace function-eq-test) +(assert (eq (eval '(function function-eq-test)) + (funcall (compile nil '(lambda () (function function-eq-test)))))) + +;;; No extra output, please +(assert (equal ".." + (with-output-to-string (*standard-output*) + (eval '(progn (princ ".") (let ((x 42)) t) (princ ".")))))) + ;;; success (sb-ext:quit :unix-status 104)