X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Farray.pure.lisp;h=0cf064fb6ba55198fc123b3b4533d019b6a2a5d3;hb=007bcd5aac2f3a1e714563bd39f7a2db2d0bf7c2;hp=2088758e00d386a851fd6a273066564460b3980a;hpb=ee3f2e0351674dde7229afdcccfcfaf8ce5b112e;p=sbcl.git diff --git a/tests/array.pure.lisp b/tests/array.pure.lisp index 2088758..0cf064f 100644 --- a/tests/array.pure.lisp +++ b/tests/array.pure.lisp @@ -258,5 +258,19 @@ (eval `(aref ,array 0 1 3)) (sb-int:invalid-array-index-error (e) (when (and (eq array (sb-kernel::invalid-array-index-error-array e)) - (= 3 (type-error-datum e))) + (= 3 (type-error-datum e)) + (equal '(integer 0 (3)) (type-error-expected-type e))) :right))))))) + +(with-test (:name :out-of-bounds-error-details) + (assert (eq :good + (handler-case + (flet ((test (array i) + (aref array i))) + (test (eval '(vector 0 1 2 3)) 6)) + (sb-int:invalid-array-index-error (e) + (when (and (equal '(integer 0 (4)) + (type-error-expected-type e)) + (eql 6 (type-error-datum e))) + :good)))))) +