X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fvector.pure.lisp;h=595d588c88a9e546f761c18d77d0099d01a80b7c;hb=d4e550ede8beccef4312e621a644b89f9d76f74d;hp=210f7b601a0b892b58cd7546a42181628a710378;hpb=0051cc0532da9f68a0ba5db5c07ebee1c91ee4d8;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)))