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
dc29bb48
Commit
dc29bb48
authored
Sep 02, 2005
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test that DO-ALL-SYMBOLS really does return when a RETURN is executed.
parent
75f386f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
ansi-tests/do-all-symbols.lsp
ansi-tests/do-all-symbols.lsp
+12
-0
No files found.
ansi-tests/do-all-symbols.lsp
View file @
dc29bb48
...
...
@@ -110,3 +110,15 @@
(do-all-symbols (s x)
(declare (special x)))))
:good)
;;; Executing a return actually terminates the loop
(deftest do-all-symbols.12
(let ((should-have-returned nil))
(block done
(do-all-symbols (s :bad1)
(when should-have-returned
(return-from done :bad2))
(setq should-have-returned t)
(return :good))))
:good)
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