Commit 5f651ec5 authored by pfdietz's avatar pfdietz
Browse files

Add documentation tests

parent 8d5dc369
...@@ -273,6 +273,26 @@ ...@@ -273,6 +273,26 @@
((lambda (&aux (y x)) (declare (special x)) y)))) ((lambda (&aux (y x)) (declare (special x)) y))))
:good) :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 ;;; Tests of lambda as a macro
(deftest lambda.macro.1 (deftest lambda.macro.1
...@@ -283,6 +303,8 @@ ...@@ -283,6 +303,8 @@
(funcall (eval (macroexpand '(lambda () 10)))) (funcall (eval (macroexpand '(lambda () 10))))
10) 10)
;;; Error tests
(deftest lambda.error.1 (deftest lambda.error.1
(signals-error (funcall (macro-function 'lambda)) (signals-error (funcall (macro-function 'lambda))
program-error) program-error)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment