X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Ftype.before-xc.lisp;h=1b1f0e2c5f30ca0bfb4b6e9d48d226c26162de9b;hb=7ff2233608f1f110e112ae576fa829618ce181ae;hp=77f484f206bc688dbfba6768ec1e7bfec4be2d7f;hpb=cd8fe50554652680dde36396d7862fc6cc83839c;p=sbcl.git diff --git a/tests/type.before-xc.lisp b/tests/type.before-xc.lisp index 77f484f..1b1f0e2 100644 --- a/tests/type.before-xc.lisp +++ b/tests/type.before-xc.lisp @@ -54,6 +54,12 @@ (assert (type= (specifier-type 'cons) (type-intersection (specifier-type 'sequence) (specifier-type '(or cons number))))) +(assert (type= (specifier-type '(simple-array character (*))) + (type-intersection (specifier-type 'sequence) + (specifier-type '(simple-array character))))) +(assert (type= (specifier-type 'list) + (type-intersection (specifier-type 'sequence) + (specifier-type 'list)))) (assert (eql *empty-type* (type-intersection (specifier-type '(satisfies keywordp)) *empty-type*))) @@ -62,8 +68,10 @@ (type-union (specifier-type 'cons) (specifier-type 'null)))) (assert (type= (specifier-type 'list) (type-union (specifier-type 'null) (specifier-type 'cons)))) +#+nil ; not any more (assert (type= (specifier-type 'sequence) (type-union (specifier-type 'list) (specifier-type 'vector)))) +#+nil ; not any more (assert (type= (specifier-type 'sequence) (type-union (specifier-type 'vector) (specifier-type 'list)))) (assert (type= (specifier-type 'list) @@ -329,5 +337,7 @@ (assert yes) (assert win)) +(assert (type= (specifier-type 'nil) + (specifier-type '(and symbol funcallable-instance)))) (/show "done with tests/type.before-xc.lisp")