Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
ansi-test
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Karsten Poeck
ansi-test
Commits
31c4cfc4
Commit
31c4cfc4
authored
Nov 05, 2004
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests that the function values returned by #'<name> on a LABELS-bound name respect EQL
parent
a480887a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
ansi-tests/labels.lsp
ansi-tests/labels.lsp
+28
-1
No files found.
ansi-tests/labels.lsp
View file @
31c4cfc4
...
...
@@ -271,4 +271,31 @@
(signals-error
(labels ((%f (&key) :bad)) (%f nil nil))
program-error)
t)
\ No newline at end of file
t)
;;; Identity of function objects
;;; Since (FUNCTION <name>) returns *the* functional value, it
;;; should be the case that different invocations of this form
;;; in the same lexical environment return the same value.
(deftest labels.37
(labels ((f () 'foo))
(eqt #'f #'f))
t)
(deftest labels.38
(labels ((f () 'foo))
(destructuring-bind (x y) (loop repeat 2 collect #'f) (eqlt x y)))
t)
(deftest labels.39
(labels ((f () #'f))
(eqlt (f) #'f))
t)
(deftest labels.40
(let ((x (labels ((f () #'f)) #'f)))
(eqlt x (funcall x)))
t)
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