X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Ftype.pure.lisp;h=f472f249ab05f94f109b882670cd49d368b15642;hb=669eaea6857ab6211bfd6c00c7d227f3263200b9;hp=1bd07f4aaf55384601e1529825830bf82180a9ac;hpb=25c9bfeaaf0597e37271dde31eed7037dba391e0;p=sbcl.git diff --git a/tests/type.pure.lisp b/tests/type.pure.lisp index 1bd07f4..f472f24 100644 --- a/tests/type.pure.lisp +++ b/tests/type.pure.lisp @@ -215,7 +215,15 @@ (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)))) '(nil t))) + +(assert (typep 0 '(real #.(ash -1 10000) #.(ash 1 10000)))) +(assert (subtypep '(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))))