Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Karsten Poeck
ansi-test
Commits
70a2a757
Commit
70a2a757
authored
Mar 26, 2016
by
Daniel Kochmański
Browse files
s-sharp: check symbol's packages
parent
a698a9ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
printer/print-structure.lsp
View file @
70a2a757
...
...
@@ -6,14 +6,13 @@
(in-package :cl-test)
(defstruct print-struct-1
foo bar)
(deftest print-structure.1
(let ((s (make-print-struct-1 :foo 1 :bar 2)))
(with-standard-io-syntax
(let ((*
package
* (find-package "CL-TEST"))
(let ((*
tst-pkg
* (find-package "CL-TEST"))
(*kwd-pkg* (find-package "KEYWORD")))
(let ((str (write-to-string s :readably nil :case :upcase :escape nil)))
(assert (string= (subseq str 0 3) "#S("))
...
...
@@ -23,6 +22,7 @@
(assert (eq (car vals) 'print-struct-1))
(assert (symbolp (second vals)))
(assert (symbolp (fourth vals)))
(assert (eql *tst-pkg* (symbol-package (first vals))))
(assert (eql *kwd-pkg* (symbol-package (second vals))))
(assert (eql *kwd-pkg* (symbol-package (fourth vals))))
(cond
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment