Skip to content

Commit 6f89278

Browse files
hemmldavazp
authored andcommitted
Add a test for &allow-other-keys
1 parent 3da16dd commit 6f89278

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/defun.lisp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,11 @@
8585
(incf (getr r 0)))
8686
(equal '(11 (3 2 1 :tail) nil)
8787
(vector-to-list r))))
88+
89+
;;; &allow-other-keys test
90+
(defun fff (&key a b &allow-other-keys)
91+
(list a b))
92+
93+
(test (equal '(1 2) (fff :a 1 :b 2 :c 3)))
94+
8895
;;; EOF

0 commit comments

Comments
 (0)