projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.8.21.49: Fixes for OS X 10.4 "Tiger"
[sbcl.git]
/
tests
/
type.pure.lisp
diff --git
a/tests/type.pure.lisp
b/tests/type.pure.lisp
index
23e5850
..
0ea08e0
100644
(file)
--- a/
tests/type.pure.lisp
+++ b/
tests/type.pure.lisp
@@
-215,6
+215,8
@@
(assert (subtypep 'complex '(complex real)))
(assert (subtypep '(complex real) 'complex))
(assert (subtypep '(complex (eql 1)) '(complex (member 1 2))))
(assert (subtypep 'complex '(complex real)))
(assert (subtypep '(complex real) 'complex))
(assert (subtypep '(complex (eql 1)) '(complex (member 1 2))))
+(assert (subtypep '(complex ratio) '(complex rational)))
+(assert (subtypep '(complex ratio) 'complex))
(assert (equal (multiple-value-list
(subtypep '(complex (integer 1 2))
'(member #c(1 1) #c(1 2) #c(2 1) #c(2 2))))
(assert (equal (multiple-value-list
(subtypep '(complex (integer 1 2))
'(member #c(1 1) #c(1 2) #c(2 1) #c(2 2))))
@@
-225,3
+227,9
@@
'(real #.(ash -1 10000) #.(ash 1 10000))))
(assert (subtypep '(real (#.(ash -1 1000)) (#.(ash 1 1000)))
'(real #.(ash -1 1000) #.(ash 1 1000))))
'(real #.(ash -1 10000) #.(ash 1 10000))))
(assert (subtypep '(real (#.(ash -1 1000)) (#.(ash 1 1000)))
'(real #.(ash -1 1000) #.(ash 1 1000))))
+
+;;; Bug, found by Paul F. Dietz
+(let* ((x (eval #c(-1 1/2)))
+ (type (type-of x)))
+ (assert (subtypep type '(complex rational)))
+ (assert (typep x type)))