Commit b9259fb1 authored by Andreas Fuchs's avatar Andreas Fuchs
Browse files

0.8.14.30:

	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.
parent ccc4a55f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1548,7 +1548,7 @@
      (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))
+7 −0
Original line number Diff line number Diff line
@@ -64,6 +64,13 @@
				     (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))))
+1 −1
Original line number Diff line number Diff line
@@ -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"