X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fcompiler.impure.lisp;h=e28b65628d0d452bd103114a2407d47a21d4a2ed;hb=ed7ba4dad8a79726fdfeba5aa12e276ea852c540;hp=0aeda7eb8ee0cc64d678b9a891cf0b6cc0b7b61d;hpb=675c5a9f9e3028bc2fd922ed6f570f01cf8c41cf;p=sbcl.git diff --git a/tests/compiler.impure.lisp b/tests/compiler.impure.lisp index 0aeda7e..e28b656 100644 --- a/tests/compiler.impure.lisp +++ b/tests/compiler.impure.lisp @@ -27,5 +27,17 @@ (cons x y)) (assert (equal (cons 1 2) (newfangled-cons 'right-thing 2 'left-thing 1))) +;;; ANSI specifically says that duplicate keys are OK in lambda lists, +;;; with no special exception for macro lambda lists. (As reported by +;;; Pierre Mai on cmucl-imp 2001-03-30, Python didn't think so. The +;;; rest of the thread had some entertainment value, at least for me +;;; (WHN). The unbelievers were besmote and now even CMU CL will +;;; conform to the spec in this regard. Who needs diplomacy when you +;;; have brimstone?:-) +(defmacro ayup-duplicate-keys-are-ok-i-see-the-lite (&key k) + k) +(assert (equal (ayup-duplicate-keys-are-ok-i-see-the-lite :k 112) 112)) +(assert (equal (ayup-duplicate-keys-are-ok-i-see-the-lite :k 'x :k 'y) 'x)) + ;;; success (quit :unix-status 104)