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
8dab13e8
Commit
8dab13e8
authored
22 years ago
by
pfdietz
Browse files
Options
Downloads
Patches
Plain Diff
Fixed problems in packages tests.
parent
44831cf5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansi-tests/packages-03.lsp
+32
-29
32 additions, 29 deletions
ansi-tests/packages-03.lsp
ansi-tests/packages-16.lsp
+7
-2
7 additions, 2 deletions
ansi-tests/packages-16.lsp
with
39 additions
and
31 deletions
ansi-tests/packages-03.lsp
+
32
−
29
View file @
8dab13e8
...
...
@@ -61,44 +61,46 @@
"A")
(deftest package-name-5
(catch-type-error (package-name "NOT-THERE"))
type-error)
(notnot (member (classify-error (package-name "NOT-THERE"))
'(type-error package-error)))
t)
(deftest package-name-6
(catch-type-error (package-name #\*))
type-error)
(notnot (member (classify-error (package-name #\*))
'(type-error package-error)))
t)
(deftest package-name-7
(package-name "CL")
(package-name "CL")
"COMMON-LISP")
(deftest package-name-8
(package-name "COMMON-LISP")
(package-name "COMMON-LISP")
"COMMON-LISP")
(deftest package-name-9
(package-name "COMMON-LISP-USER")
(package-name "COMMON-LISP-USER")
"COMMON-LISP-USER")
(deftest package-name-10
(package-name "CL-USER")
(package-name "CL-USER")
"COMMON-LISP-USER")
(deftest package-name-11
(package-name "KEYWORD")
(package-name "KEYWORD")
"KEYWORD")
(deftest package-name-12
(package-name (find-package "CL"))
(package-name (find-package "CL"))
"COMMON-LISP")
(deftest package-name-13
(let* ((p (make-package "TEMP1"))
(pname1 (package-name p)))
(rename-package "TEMP1" "TEMP2")
(let ((pname2 (package-name p)))
(ignore-errors (delete-package p))
(list pname1 pname2 (package-name p))))
(let* ((p (make-package "TEMP1"))
(pname1 (package-name p)))
(rename-package "TEMP1" "TEMP2")
(let ((pname2 (package-name p)))
(ignore-errors (delete-package p))
(list pname1 pname2 (package-name p))))
("TEMP1" "TEMP2" nil))
;; (find-package (package-name p)) == p for any package p
...
...
@@ -128,30 +130,30 @@
("Q"))
(deftest package-nicknames-2
(ignore-errors (package-nicknames #\A))
(ignore-errors (package-nicknames #\A))
("Q"))
(deftest package-nicknames-3
(ignore-errors (package-nicknames ':|A|))
(ignore-errors (package-nicknames ':|A|))
("Q"))
(deftest package-nicknames-4
(ignore-errors (package-nicknames "B"))
(ignore-errors (package-nicknames "B"))
nil)
(deftest package-nicknames-5
(ignore-errors (package-nicknames #\B))
(ignore-errors (package-nicknames #\B))
nil)
(deftest package-nicknames-6
(ignore-errors (package-nicknames '#:|B|))
(ignore-errors (package-nicknames '#:|B|))
nil)
(deftest package-nicknames-7
(ignore-errors
(subsetp '("CL")
(package-nicknames "COMMON-LISP")
:test #'string=))
(ignore-errors
(subsetp '("CL")
(package-nicknames "COMMON-LISP")
:test #'string=))
t)
(deftest package-nicknames-8
...
...
@@ -163,16 +165,17 @@
t)
(deftest package-nicknames-9
(catch-type-error (package-nicknames 10))
(catch-type-error (package-nicknames 10))
type-error)
(deftest package-nicknames-10
(ignore-errors (package-nicknames (find-package "A")))
(ignore-errors (package-nicknames (find-package "A")))
("Q"))
(deftest package-nicknames-11
(catch-type-error (package-nicknames "NOT-A-PACKAGE-NAME"))
type-error)
(notnot (member (classify-error (package-nicknames "NOT-A-PACKAGE-NAME"))
'(type-error package-error)))
t)
;; (find-package n) == p for each n in (package-nicknames p),
...
...
This diff is collapsed.
Click to expand it.
ansi-tests/packages-16.lsp
+
7
−
2
View file @
8dab13e8
...
...
@@ -70,8 +70,13 @@
(equal (package-used-by-list p) nil)
(equal (package-nicknames p) nil)
(equal (package-shadowing-symbols p) nil)
(equal (documentation p t) "This is a doc string")
t))))
;; The spec says implementations are free to discard
;; documentations, so this next form was wrong.
;; Instead, we'll just computation DOCUMENTATION
;; and throw away the value.
;; (equal (documentation p t) "This is a doc string")
(progn (documentation p t) t)
))))
t)
;; Check use argument
...
...
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