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
75bf107d
Commit
75bf107d
authored
Jun 06, 2003
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added type-of tests for structures and standard objects, including instances of anonymous classes.
parent
d56a34a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
ansi-tests/type-of.lsp
ansi-tests/type-of.lsp
+22
-0
No files found.
ansi-tests/type-of.lsp
View file @
75bf107d
...
...
@@ -57,6 +57,28 @@
collect x)
nil)
(defstruct type-of.example-struct a b c)
(deftest type-of.6
(type-of (make-type-of.example-struct))
type-of.example-struct)
(defclass type-of.example-class () ())
(deftest type-of.7
(type-of (make-instance 'type-of.example-class))
type-of.example-class)
(defparameter *type-of.example-class-2*
(defclass type-of.example-class-2 () ((a) (b) (c))))
(deftest type-of.8
(progn
(setf (class-name *type-of.example-class-2*) nil)
(eqt (type-of (make-instance *type-of.example-class-2*))
*type-of.example-class-2*))
t)
;;; Error tests
(deftest type-of.error.1
...
...
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