0.8.0.76:
[sbcl.git] / tests / type.pure.lisp
index fd8409e..90205bc 100644 (file)
                 (subtypep '(function)
                           '(function (t &rest t))))
                '(nil t)))
-#+nil
 (assert (and (subtypep 'function '(function))
              (subtypep '(function) 'function)))
 
                             (cons bignum single-float))
                        '(cons single-float single-float))))
 (assert (subtypep '(cons integer single-float)
-                 '(or (cons fixnum single-float) (cons bignum single-float))))
\ No newline at end of file
+                 '(or (cons fixnum single-float) (cons bignum single-float))))
+
+(assert (not (nth-value 1 (subtypep '(and null some-unknown-type)
+                                    'another-unknown-type))))
+
+;;; bug 46c
+(dolist (fun '(and if))
+  (assert (raises-error? (coerce fun 'function) type-error)))