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
a854c939
Commit
a854c939
authored
Jan 05, 2005
by
pfdietz
Browse files
Some error cases
parent
d3011a27
Changes
1
Hide whitespace changes
Inline
Side-by-side
ansi-tests/syntax.lsp
View file @
a854c939
...
...
@@ -674,3 +674,33 @@
(def-syntax-test syntax.sharp-c.5
(read-from-string "#c (1 1)")
#.(complex 1 1) 8)
;;;; Various error cases
(def-syntax-test syntax.sharp-whitespace.1
(let ((names '("Tab" "Newline" "Linefeed" "Space" "Return" "Page")))
(loop for name in names
for c = (name-char name)
when c
nconc
(let* ((form `(signals-error
(read-from-string ,(concatenate 'string "#" (string c)))
reader-error))
(vals (multiple-value-list (eval form))))
(unless (equal vals '(t))
(list (list name c form vals))))))
nil)
(def-syntax-test syntax.sharp-greater-than.1
(signals-error (read-from-string "#<" nil nil) reader-error)
t)
(def-syntax-test syntax.sharp-close-paren.1
(signals-error (read-from-string "#)" nil nil) reader-error)
t)
\ No newline at end of file
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