From d01e74f46d07c32c9faf5462dfc725cb01ad77d7 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 5 May 2022 16:38:39 +0200 Subject: [PATCH] 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. --- test/lisp/simple-tests.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)))) -- 2.39.5