]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a mistaken test case in test-undo-region
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 5 May 2022 14:38:39 +0000 (16:38 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 5 May 2022 14:38:39 +0000 (16:38 +0200)
* 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

index 6350bebeeea76483cc3ff45f26afd3df69a1b7ab..dcab811bb5a022e4a4fb81330dacca8e21da4f15 100644 (file)
@@ -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))))