X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Ftype.pure.lisp;h=a7708352c2f0f28161bd5112a967880c6564202e;hb=e76ddf242a31a2acaae3a9cb818fa31500ebbf92;hp=fcda6d6fe4a072c274e2889c50d1a27697cfe445;hpb=f3b213e5fea9992b3a9a1f2a6c482239a1aff3c1;p=sbcl.git diff --git a/tests/type.pure.lisp b/tests/type.pure.lisp index fcda6d6..a770835 100644 --- a/tests/type.pure.lisp +++ b/tests/type.pure.lisp @@ -161,3 +161,23 @@ ;;; signalled an error on this expression. (subtypep '(function (fixnum) (values package boolean)) '(function (t) (values package boolean))) + +;;; bug reported by Valtteri Vuorik +(compile nil '(lambda () (member (char "foo" 0) '(#\. #\/) :test #'char=))) +(assert (not (equal (multiple-value-list + (subtypep '(function ()) '(function (&rest t)))) + '(nil t)))) + +(assert (not (equal (multiple-value-list + (subtypep '(function (&rest t)) '(function ()))) + '(t t)))) + +(assert (subtypep '(function) + '(function (&optional * &rest t)))) +(assert (equal (multiple-value-list + (subtypep '(function) + '(function (t &rest t)))) + '(nil t))) +#+nil +(assert (and (subtypep 'function '(function)) + (subtypep '(function) 'function)))