Skip to content
Snippets Groups Projects
Commit 5f651ec5 authored by pfdietz's avatar pfdietz
Browse files

Add documentation tests

parent 8d5dc369
No related branches found
No related tags found
No related merge requests found
......@@ -273,6 +273,26 @@
((lambda (&aux (y x)) (declare (special x)) y))))
:good)
(deftest lambda.55
(let* ((doc "LMB55")
(fn (eval `#'(lambda () ,doc nil)))
(cfn (compile nil fn)))
(values
(or (documentation fn t) doc)
(or (documentation cfn t) doc)))
"LMB55"
"LMB55")
(deftest lambda.56
(let* ((doc "LMB56")
(fn (eval `#'(lambda () ,doc nil)))
(cfn (compile nil fn)))
(values
(or (documentation fn 'function) doc)
(or (documentation cfn 'function) doc)))
"LMB56"
"LMB56")
;;; Tests of lambda as a macro
(deftest lambda.macro.1
......@@ -283,6 +303,8 @@
(funcall (eval (macroexpand '(lambda () 10))))
10)
;;; Error tests
(deftest lambda.error.1
(signals-error (funcall (macro-function 'lambda))
program-error)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment