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
c1580327
Commit
c1580327
authored
Apr 24, 2003
by
pfdietz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added :documentation tests.
parent
89056615
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
ansi-tests/defclass-01.lsp
ansi-tests/defclass-01.lsp
+37
-0
No files found.
ansi-tests/defclass-01.lsp
View file @
c1580327
...
...
@@ -662,3 +662,40 @@
*class-21-s1-initvar-1*
*class-21-s1-initvar-2*))
11 y 11 21)
;;; Documentation strings
(defclass class-22 ()
((s1 :documentation "This is slot s1 in class class-22")))
(deftest class-22.1
(notnot-mv (typep (make-instance 'class-22) 'class-22))
t)
;;; We can't portably get at the docstring of slots
(defclass class-23 ()
(s1 s2 s3)
(:documentation "This is class-23 in ansi-tests"))
(deftest class-23.1
(notnot-mv (typep (make-instance 'class-23) 'class-23))
t)
(deftest class-23.2
(let ((doc (documentation 'class-23 'type)))
(or (null doc)
(equalt doc "This is class-23 in ansi-tests")))
t)
(deftest class-23.3
(let ((doc (documentation (find-class 'class-23) 'type)))
(or (null doc)
(equalt doc "This is class-23 in ansi-tests")))
t)
(deftest class-23.4
(let ((doc (documentation (find-class 'class-23) t)))
(or (null doc)
(equalt doc "This is class-23 in ansi-tests")))
t)
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