emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/adoc-mode d80b29ebc9 072/199: test: bugfix: point was wron


From: ELPA Syncer
Subject: [nongnu] elpa/adoc-mode d80b29ebc9 072/199: test: bugfix: point was wronly positioned in adoctest-trans
Date: Sun, 3 Sep 2023 06:59:35 -0400 (EDT)

branch: elpa/adoc-mode
commit d80b29ebc93e24109db3d9be3eb7bbdc9d88bed4
Author: Florian Kaufmann <sensorflo@gmail.com>
Commit: Florian Kaufmann <sensorflo@gmail.com>

    test: bugfix: point was wronly positioned in adoctest-trans
---
 adoc-mode-test.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/adoc-mode-test.el b/adoc-mode-test.el
index d91ed4915f..70ec52bb9b 100644
--- a/adoc-mode-test.el
+++ b/adoc-mode-test.el
@@ -90,7 +90,7 @@
          (adoc-mode)
          (insert original-text)
          (when pos
-           (goto-char pos))
+           (goto-char (1+ pos)))       ; buffer pos starts at 1, but string 
pos at 0
          ;; exercise
          (eval transform)
          ;; verify
@@ -650,7 +650,8 @@
        ;; todo: execute tests in an smart order: the basic/simple tests first, 
so
        ;; when a complicated test fails one knows that the simple things do 
work
        (adoc-test-save-compile-load)
-       (ert-run-tests-interactively "^adoctest-test-"))
+       (ert-run-tests-interactively "^adoctest-test-")
+       )
     (when (file-exists-p "adoc-mode.elc")
       (delete-file "adoc-mode.elc"))
     (when (file-exists-p "adoc-mode-test.elc")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]