X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fsmoke.impure.lisp;h=a7130a7bca92ed04585341859b4f001f5c673ac0;hb=1714224f33ba559eab11af8827a78f9a5aebd698;hp=1b7e38d0995c9a855c2a9274a8f2f1b0d1d89e23;hpb=befd268d09043f37545713b999850df4435170d9;p=sbcl.git diff --git a/tests/smoke.impure.lisp b/tests/smoke.impure.lisp index 1b7e38d..a7130a7 100644 --- a/tests/smoke.impure.lisp +++ b/tests/smoke.impure.lisp @@ -31,13 +31,14 @@ (assert (typep (in-package :cl-user) 'package)) ;;; PROFILE should run without obvious breakage -(defun profiled-fun () - (random 1d0)) -(profile profiled-fun) -(loop repeat 100000 do (profiled-fun)) -(report) +(progn + (defun profiled-fun () + (random 1d0)) + (profile profiled-fun) + (loop repeat 100000 do (profiled-fun)) + (report)) -;;; DEFCONSTANT should behave as the documentation specifies, +;;; Defconstant should behave as the documentation specifies, ;;; including documented condition type. (defun oidentity (x) x) (defconstant +const+ 1) @@ -67,5 +68,9 @@ (assert (= &key 3)) (assert (null &allow-other-keys))) +(let ((fn (lambda (&foo &rest &bar) (cons &foo &bar)))) + (assert (equal (funcall fn 1) '(1))) + (assert (equal (funcall fn 1 2 3) '(1 2 3)))) + ;;; success (quit :unix-status 104)