projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.0.36.9: UD2-BREAKPOINTS feature for x86oid systems
[sbcl.git]
/
tests
/
defstruct.impure.lisp
diff --git
a/tests/defstruct.impure.lisp
b/tests/defstruct.impure.lisp
index
e0ab36e
..
7f2ba08
100644
(file)
--- a/
tests/defstruct.impure.lisp
+++ b/
tests/defstruct.impure.lisp
@@
-1061,3
+1061,7
@@
redefinition."
(type-error (e)
(assert (eq 'string (type-error-expected-type e)))
(assert (zerop (type-error-datum e))))))
(type-error (e)
(assert (eq 'string (type-error-expected-type e)))
(assert (zerop (type-error-datum e))))))
+
+(with-test (:name defstruct-copier-typechecks-argument)
+ (assert (not (raises-error? (copy-person (make-astronaut :name "Neil")))))
+ (assert (raises-error? (copy-astronaut (make-person :name "Fred")))))