Skip to content
GitLab
Projects
Groups
Snippets
/
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
dc29bb48
Commit
dc29bb48
authored
Sep 02, 2005
by
pfdietz
Browse files
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
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
Supports
Markdown
0%
Try again
or
attach a new 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