X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fseq.pure.lisp;h=91b1971769deab087cea374cad3f0c54e4205cc5;hb=c2ac5ba3964165ee2d21ccd4c6bf8bdc48e1a165;hp=7eac06886fe8415d28bc963ffff4d4d72242c45d;hpb=42cb633f2a06d5cbe6b0ec86920cb0d662c49843;p=sbcl.git diff --git a/tests/seq.pure.lisp b/tests/seq.pure.lisp index 7eac068..91b1971 100644 --- a/tests/seq.pure.lisp +++ b/tests/seq.pure.lisp @@ -187,3 +187,10 @@ (assert (string= c "abcde")) (assert (string= d "beacd")) (assert (string= e "abced"))) + +;;; COPY-SEQ "should be prepared to signal an error if sequence is not +;;; a proper sequence". +(locally (declare (optimize safety)) + (multiple-value-bind (seq err) (ignore-errors (copy-seq '(1 2 3 . 4))) + (assert (not seq)) + (assert (typep err 'type-error))))