From: Lars Ingebrigtsen Date: Thu, 5 May 2022 14:38:39 +0000 (+0200) Subject: Fix a mistaken test case in test-undo-region X-Git-Tag: emacs-29.0.90~1931^2~42 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d01e74f46d07c32c9faf5462dfc725cb01ad77d7;p=emacs.git Fix a mistaken test case in test-undo-region * test/lisp/simple-tests.el (test-undo-region): Fix failing cases (bug#21523) -- the crossing-region case shouldn't be included, either. --- diff --git a/test/lisp/simple-tests.el b/test/lisp/simple-tests.el index 6350bebeeea..dcab811bb5a 100644 --- a/test/lisp/simple-tests.el +++ b/test/lisp/simple-tests.el @@ -966,8 +966,8 @@ See Bug#21722." (setq buffer-undo-list nil) (downcase-word 1) (should (= (length (delq nil (undo-make-selective-list 1 9))) 2)) - (should (= (length (delq nil (undo-make-selective-list 4 9))) 1)) - ;; FIXME this is the off-by-one error case. + ;; FIXME: These should give 0, but currently give 1. + ;;(should (= (length (delq nil (undo-make-selective-list 4 9))) 0)) ;;(should (= (length (delq nil (undo-make-selective-list 5 9))) 0)) (should (= (length (delq nil (undo-make-selective-list 6 9))) 0))))