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
40b05dcb
Commit
40b05dcb
authored
22 years ago
by
pfdietz
Browse files
Options
Downloads
Patches
Plain Diff
Modified some tests to return more useful information on failure.
parent
66d3fa5a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansi-tests/function.lsp
+10
-10
10 additions, 10 deletions
ansi-tests/function.lsp
ansi-tests/functionp.lsp
+10
-9
10 additions, 9 deletions
ansi-tests/functionp.lsp
with
20 additions
and
19 deletions
ansi-tests/function.lsp
+
10
−
10
View file @
40b05dcb
...
@@ -32,10 +32,10 @@
...
@@ -32,10 +32,10 @@
(not (special-operator-p s))
(not (special-operator-p s))
(not (macro-function s))
(not (macro-function s))
(symbol-function s))
(symbol-function s))
alway
s (or (null f)
unles
s (or (null f)
(typep f 'function)
(typep f 'function)
)
)
)
collect x
)
t
)
nil
)
(deftest function.5
(deftest function.5
(typep '(setf car) 'function)
(typep '(setf car) 'function)
...
@@ -67,12 +67,12 @@
...
@@ -67,12 +67,12 @@
;;; In ANSI CL, symbols and cons can no longer also be of type FUNCTION.
;;; In ANSI CL, symbols and cons can no longer also be of type FUNCTION.
(deftest function.10
(deftest function.10
(loop for x in *universe*
(loop for x in *universe*
never
when (and (or (numberp x) (characterp x)
(and (or (numberp x) (character
p x)
(symbolp x) (cons
p x)
(symbolp x) (consp x
)
(typep x 'array)
)
(typep x '
array
))
(typep x '
function
))
(typep x 'function))
)
collect x
)
t
)
nil
)
(deftest function.11
(deftest function.11
(flet ((%f () nil)) (typep '%f 'function))
(flet ((%f () nil)) (typep '%f 'function))
...
...
This diff is collapsed.
Click to expand it.
ansi-tests/functionp.lsp
+
10
−
9
View file @
40b05dcb
...
@@ -32,9 +32,10 @@
...
@@ -32,9 +32,10 @@
(not (special-operator-p s))
(not (special-operator-p s))
(not (macro-function s))
(not (macro-function s))
(symbol-function s))
(symbol-function s))
always (or (null f)
unless (or (null f)
(functionp f)))
(functionp f))
t)
collect x)
nil)
(deftest functionp.5
(deftest functionp.5
(functionp '(setf car))
(functionp '(setf car))
...
@@ -64,12 +65,12 @@
...
@@ -64,12 +65,12 @@
;;; In ANSI CL, symbols and cons can no longer be functions
;;; In ANSI CL, symbols and cons can no longer be functions
(deftest functionp.10
(deftest functionp.10
(loop for x in *universe*
(loop for x in *universe*
never
when (and (or (numberp x) (characterp x)
(and (or (numberp x) (character
p x)
(symbolp x) (cons
p x)
(symbolp x) (consp x
)
(typep x 'array)
)
(typep x 'array
))
(functionp x
))
(functionp
x)
))
collect
x)
t
)
nil
)
(deftest functionp.11
(deftest functionp.11
(flet ((%f () nil)) (functionp '%f))
(flet ((%f () nil)) (functionp '%f))
...
...
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