0.8.14.30:
authorAndreas Fuchs <asf@boinkor.net>
Tue, 28 Sep 2004 08:42:57 +0000 (08:42 +0000)
committerAndreas Fuchs <asf@boinkor.net>
Tue, 28 Sep 2004 08:42:57 +0000 (08:42 +0000)
One last fix before the release: make REMOVE-DUPLICATES :START work

* Fix due to Peter Graves and the Sacla test suite
* Also add a test case for that and DELETE-DUPLICATES, while we're
  at it.

src/code/seq.lisp
tests/seq.pure.lisp
version.lisp-expr

index d7d1f43..5afbc7f 100644 (file)
       (declare (fixnum index))
       (setq splice (cdr (rplacd splice (list (car current)))))
       (setq current (cdr current)))
-    (do ((index 0 (1+ index)))
+    (do ((index start (1+ index)))
        ((or (and end (= index (the fixnum end)))
             (atom current)))
       (declare (fixnum index))
index 18ea6dc..ae9ea86 100644 (file)
                                     (make-list (- 10 j)
                                                :initial-element 'a))))))))
 
+;;; And equally similarly, REMOVE-DUPLICATES misbehaved when given
+;;; :START arguments:
+
+(let ((orig (list 0 1 2 0 1 2 0 1 2 0 1 2)))
+  (assert (equalp (remove-duplicates orig :start 3 :end 9) '(0 1 2 0 1 2 0 1 2)))
+  (assert (equalp (delete-duplicates orig :start 3 :end 9) '(0 1 2 0 1 2 0 1 2))))
+
 ;;; tests of COUNT
 (assert (= 1 (count 1 '(1 2 3))))
 (assert (= 2 (count 'z #(z 1 2 3 z))))
index 0973086..d759053 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.8.14.29"
+"0.8.14.30"