X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fvector.pure.lisp;fp=tests%2Fvector.pure.lisp;h=595d588c88a9e546f761c18d77d0099d01a80b7c;hb=77869604fc3eb4417a630651e5fe40e74342ee59;hp=210f7b601a0b892b58cd7546a42181628a710378;hpb=3ab22aeab40acb47148ccb851f6d1b3afdcda15b;p=sbcl.git diff --git a/tests/vector.pure.lisp b/tests/vector.pure.lisp index 210f7b6..595d588 100644 --- a/tests/vector.pure.lisp +++ b/tests/vector.pure.lisp @@ -32,3 +32,15 @@ (vector-push-extend #\a complex-t) (assert (= (length complex-t) 4)) (assert (raises-error? (vector-push-extend #\b simple-t)))))) + +(multiple-value-bind (fp1 index fp2 bool) + (let ((a (make-array '(5) :fill-pointer 5 :adjustable 5 + :initial-contents '(a b c d e)))) + (values (fill-pointer a) + (vector-push-extend 'x a) + (fill-pointer a) + (<= (array-total-size a) 5))) + (assert (= fp1 5)) + (assert (= index 5)) + (assert (= fp2 6)) + (assert (not bool)))