Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Karsten Poeck
ansi-test
Commits
5f651ec5
Commit
5f651ec5
authored
May 22, 2005
by
pfdietz
Browse files
Add documentation tests
parent
8d5dc369
Changes
1
Show whitespace changes
Inline
Side-by-side
ansi-tests/lambda.lsp
View file @
5f651ec5
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment