Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ansi-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michał Herda
ansi-test
Commits
b67d1e73
Commit
b67d1e73
authored
20 years ago
by
pfdietz
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bugs with char codes that don't correspond to actual chars
parent
c7c9fa73
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansi-tests/syntax.lsp
+13
-13
13 additions, 13 deletions
ansi-tests/syntax.lsp
with
13 additions
and
13 deletions
ansi-tests/syntax.lsp
+
13
−
13
View file @
b67d1e73
...
...
@@ -85,9 +85,9 @@
for s0 = (and c (string c))
for s = (and c (concatenate 'string "\\" s0))
for sym = (and c (read-from-string s))
unless (
and
c
(symbolp sym)
(string= (symbol-name sym) s0))
unless (
or (not
c
)
(and
(symbolp sym)
(string= (symbol-name sym) s0))
)
collect (progn
(when (> (incf count) 100) (loop-finish))
(list i c s0 s sym))))
...
...
@@ -100,9 +100,9 @@
for s = (and c (concatenate 'string "\\" s0))
for sym = (and c (read-from-string s))
repeat 1000
unless (
and
c
(symbolp sym)
(string= (symbol-name sym) s0))
unless (
or (not
c
)
(and
(symbolp sym)
(string= (symbol-name sym) s0))
)
collect (list i c s0 s sym))
nil)
...
...
@@ -122,10 +122,10 @@
(let ((count 0))
(loop for i from 0 below (min 65536 char-code-limit)
for c = (code-char i)
for bad = (find c "\\|")
for s0 = (string c)
for s = (concatenate 'string "|" s0 "|")
for sym = (and (not bad) (read-from-string s))
for bad =
(or (not c)
(find c "\\|")
)
for s0 =
(and c
(string c)
)
for s =
(and c
(concatenate 'string "|" s0 "|")
)
for sym = (and
c
(not bad) (read-from-string s))
unless (or bad
(and (symbolp sym)
(string= (symbol-name sym) s0)))
...
...
@@ -137,9 +137,9 @@
(def-syntax-test syntax.escaped.6
(loop for i = (random (min char-code-limit (ash 1 24)))
for c = (code-char i)
for bad = (find c "\\|")
for s0 = (string c)
for s = (concatenate 'string "|" s0 "|")
for bad =
(or (not c)
(find c "\\|")
)
for s0 =
(and c
(string c)
)
for s =
(and c
(concatenate 'string "|" s0 "|")
)
for sym = (and (not bad) (read-from-string s))
repeat 1000
unless (or bad
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment