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
3c829721
Commit
3c829721
authored
Jun 05, 2003
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I left out some tests of type-of. Here's a doozy.
parent
ef8f5d60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
ansi-tests/load-types-and-class.lsp
ansi-tests/load-types-and-class.lsp
+2
-0
ansi-tests/type-of.lsp
ansi-tests/type-of.lsp
+22
-0
No files found.
ansi-tests/load-types-and-class.lsp
View file @
3c829721
...
...
@@ -15,4 +15,6 @@
(load "deftype.lsp")
(load "standard-generic-function.lsp")
(load "type-of.lsp")
ansi-tests/type-of.lsp
0 → 100644
View file @
3c829721
;-*- Mode: Lisp -*-
;;;; Author: Paul Dietz
;;;; Created: Wed Jun 4 21:15:05 2003
;;;; Contains: Tests of TYPE-OF
(in-package :cl-test)
;;; It turns out I left out an important test of type-of:
;;; (type-of x) must be a recognizable subtype of every builtin type
;;; of which x is a member.
(deftest type-of.1
(loop for x in *universe*
for tp = (type-of x)
for failures = (loop for tp2 in *cl-all-type-symbols*
when (and (typep x tp2)
(not (subtypep tp tp2)))
collect tp2)
when failures collect (list x failures))
nil)
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