X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Flist.pure.lisp;h=702b89eaa021d51df8f4b1ad94524c0d22ef4af5;hb=9fb8bf2eb2c91cbda313edaa3362ff8b221ab81d;hp=afc5c6b7c6c14542ea03f0e65f0e722836a9e44e;hpb=961c7076f5fba67ddba0e12dd131104834348b1a;p=sbcl.git diff --git a/tests/list.pure.lisp b/tests/list.pure.lisp index afc5c6b..702b89e 100644 --- a/tests/list.pure.lisp +++ b/tests/list.pure.lisp @@ -229,3 +229,10 @@ :b '((:a . 1) (:b . 2)))))) (assert (equal '(3 4 5) (funcall (compile nil '(lambda (i l) (member i l))) 3 '(1 2 3 4 5))))) + +;;; bad bounding index pair to SUBSEQ on a list +(let ((list (list 0 1 2 3 4 5))) + (multiple-value-bind (res err) (ignore-errors (subseq list 4 2)) + (assert (not res)) + (assert (typep err 'sb-kernel:bounding-indices-bad-error)))) +