X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fseq.pure.lisp;h=21b2a4f42f334483aab045730bc910717d195b41;hb=8d021a02be794dee4802e64701bab8a5b1ae3c55;hp=a36bb350ff1953315e503fa3418e51988026ea4f;hpb=97e52e46f9bcb054eec35a9c326db75993441ca1;p=sbcl.git diff --git a/tests/seq.pure.lisp b/tests/seq.pure.lisp index a36bb35..21b2a4f 100644 --- a/tests/seq.pure.lisp +++ b/tests/seq.pure.lisp @@ -114,3 +114,8 @@ (ignore-errors (count-if #'zerop #(0 a 0 b c) :start 1 :from-end 11)) (declare (ignore v)) (assert (eql (type-error-datum e) 'c))) + +;;; :COUNT may be negative and BIGNUM +(assert (equal (remove 1 '(1 2 3 1) :count 1) '(2 3 1))) +(assert (equal (remove 1 '(1 2 3 1) :count (* 2 most-positive-fixnum)) '(2 3))) +(assert (equal (remove 1 '(1 2 3 1) :count (* -2 most-positive-fixnum)) '(1 2 3 1)))