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
c357adcf
Commit
c357adcf
authored
19 years ago
by
pfdietz
Browse files
Options
Downloads
Patches
Plain Diff
Add a test that the sxhash of a symbol doesn't change when it is uninterned.
parent
0e2b7f1f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansi-tests/sxhash.lsp
+13
-0
13 additions, 0 deletions
ansi-tests/sxhash.lsp
with
13 additions
and
0 deletions
ansi-tests/sxhash.lsp
+
13
−
0
View file @
c357adcf
...
...
@@ -267,6 +267,19 @@
hashes))
:good)
;;; The hash of a symbol does not change when its package changes
(deftest sxhash.23
(progn
(safely-delete-package "A")
(defpackage "A" (:use))
(let* ((pkg (find-package "A"))
(sym (intern "FOO" pkg))
(hash (sxhash sym)))
(unintern sym pkg)
(let ((hash2 (sxhash sym)))
(if (eql hash hash2) nil (list hash hash2)))))
nil)
;;; Error cases
(deftest sxhash.error.1
...
...
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