X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftype.before-xc.lisp;fp=tests%2Ftype.before-xc.lisp;h=7bc61c5df067bfe1b2ad06d0d7e9305f7b6a6ccd;hb=5470bfd1ed062203f4ab009f6ec19e81f8f32066;hp=59d1d82f7c5e26aa604ca242e759585f841f1257;hpb=22217256264c3a7af7dc03b9ffb1dd72a0c25368;p=sbcl.git diff --git a/tests/type.before-xc.lisp b/tests/type.before-xc.lisp index 59d1d82..7bc61c5 100644 --- a/tests/type.before-xc.lisp +++ b/tests/type.before-xc.lisp @@ -201,5 +201,15 @@ (assert (type= isect (type-intersection type2 type1 type2))) (assert (type= isect (type-intersection type1 type1 type2 type1))) (assert (type= isect (type-intersection type1 type2 type1 type2)))) +(assert (csubtypep (specifier-type '(or (single-float -1.0 1.0) + (single-float 0.1))) + (specifier-type '(or (real -1 7) + (single-float 0.1) + (single-float -1.0 1.0))))) +(assert (not (csubtypep (specifier-type '(or (real -1 7) + (single-float 0.1) + (single-float -1.0 1.0))) + (specifier-type '(or (single-float -1.0 1.0) + (single-float 0.1)))))) (/show "done with tests/type.before-xc.lisp")