X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Ftype.pure.lisp;h=c4b282ab3644c97871730153215466502a366bf8;hb=62e95b4e33a18683689820eb5c1d1fd54098828a;hp=5c570c916e9fcebd225bb88ce43fecd000add28f;hpb=05449b9101cdf156f48e7cf935d3874dc7cbadeb;p=sbcl.git diff --git a/tests/type.pure.lisp b/tests/type.pure.lisp index 5c570c9..c4b282a 100644 --- a/tests/type.pure.lisp +++ b/tests/type.pure.lisp @@ -193,3 +193,10 @@ '(rational 0 10))) (assert (subtypep '(rational 0 10) '(or (eql 0) (rational (0) 10)))) +;;; Until sbcl-0.7.13.7, union of CONS types when the CDRs were the +;;; same type gave exceedingly wrong results +(assert (null (subtypep '(or (cons fixnum single-float) + (cons bignum single-float)) + '(cons single-float single-float)))) +(assert (subtypep '(cons integer single-float) + '(or (cons fixnum single-float) (cons bignum single-float))))