projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.8.21.50:
[sbcl.git]
/
tests
/
type.before-xc.lisp
diff --git
a/tests/type.before-xc.lisp
b/tests/type.before-xc.lisp
index
7bc61c5
..
90d8f1d
100644
(file)
--- a/
tests/type.before-xc.lisp
+++ b/
tests/type.before-xc.lisp
@@
-128,14
+128,11
@@
(assert-secondnil (sb-xc:subtypep t '(satisfies foo)))
(assert-secondnil (sb-xc:subtypep t '(and (satisfies foo) (satisfies bar))))
(assert-secondnil (sb-xc:subtypep t '(or (satisfies foo) (satisfies bar))))
(assert-secondnil (sb-xc:subtypep t '(satisfies foo)))
(assert-secondnil (sb-xc:subtypep t '(and (satisfies foo) (satisfies bar))))
(assert-secondnil (sb-xc:subtypep t '(or (satisfies foo) (satisfies bar))))
- ;; FIXME: Enable these tests when bug 84 is fixed.
- #|
(assert-secondnil (sb-xc:subtypep '(satisfies foo) nil))
(assert-secondnil (sb-xc:subtypep '(and (satisfies foo) (satisfies bar))
nil))
(assert-secondnil (sb-xc:subtypep '(or (satisfies foo) (satisfies bar))
(assert-secondnil (sb-xc:subtypep '(satisfies foo) nil))
(assert-secondnil (sb-xc:subtypep '(and (satisfies foo) (satisfies bar))
nil))
(assert-secondnil (sb-xc:subtypep '(or (satisfies foo) (satisfies bar))
- nil))
- |#)
+ nil)))
;;; tests of 2-value quantifieroids FOO/TYPE
(macrolet ((2= (v1 v2 expr2)
;;; tests of 2-value quantifieroids FOO/TYPE
(macrolet ((2= (v1 v2 expr2)
@@
-212,4
+209,11
@@
(specifier-type '(or (single-float -1.0 1.0)
(single-float 0.1))))))
(specifier-type '(or (single-float -1.0 1.0)
(single-float 0.1))))))
+(assert (sb-xc:typep #\, 'character))
+(assert (sb-xc:typep #\@ 'character))
+
+(assert (type= (type-intersection (specifier-type '(member #\a #\c #\e))
+ (specifier-type '(member #\b #\c #\f)))
+ (specifier-type '(member #\c))))
+
(/show "done with tests/type.before-xc.lisp")
(/show "done with tests/type.before-xc.lisp")