X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Ftype.before-xc.lisp;fp=tests%2Ftype.before-xc.lisp;h=2ae293774f2363973fd0db438f1a30dc931db968;hb=83b88ebcc07cda4daec275fa851664495a840445;hp=e123ae1c26c47402b3cd4e969c572c06bbe54435;hpb=143edab8d233c784cde14bce6c5165219ea84bf4;p=sbcl.git diff --git a/tests/type.before-xc.lisp b/tests/type.before-xc.lisp index e123ae1..2ae2937 100644 --- a/tests/type.before-xc.lisp +++ b/tests/type.before-xc.lisp @@ -182,14 +182,22 @@ (assert (null (type-intersection2 (specifier-type 'symbol) (specifier-type '(satisfies foo))))) (assert (intersection-type-p (specifier-type '(and symbol (satisfies foo))))) -;; FIXME: As of sbcl-0.6.11.17, the system doesn't know how to do the -;; type simplifications which would let these tests work. (bug 88) -#| (let* ((type1 (specifier-type '(member :x86))) (type2 (specifier-type '(or keyword null))) (isect (type-intersection type1 type2))) + (assert (type= isect type1)) (assert (type= isect (type-intersection type2 type1))) + (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)))) +;;; FIXME: As of sbcl-0.6.11.19, the system doesn't know how to do the +;;; type simplifications which would let these tests work. (bug 89) +#| +(let* ((type1 (specifier-type 'keyword)) + (type2 (specifier-type '(or keyword null))) + (isect (type-intersection type1 type2))) (assert (type= isect type1)) + (assert (type= isect (type-intersection type2 type1))) (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))))