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

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

[elpa] externals/javaimp 74f101433b: Fix tests


From: Filipp Gunbin
Subject: [elpa] externals/javaimp 74f101433b: Fix tests
Date: Tue, 19 Apr 2022 16:33:23 -0400 (EDT)

branch: externals/javaimp
commit 74f101433b1821ed4827b4ac2a1ddcad6542630a
Author: Filipp Gunbin <fgunbin@okko.tv>
Commit: Filipp Gunbin <fgunbin@okko.tv>

    Fix tests
---
 javaimp-tests.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/javaimp-tests.el b/javaimp-tests.el
index a895fc6658..42b5daa069 100644
--- a/javaimp-tests.el
+++ b/javaimp-tests.el
@@ -165,7 +165,10 @@ throws E1 {"
   (dolist (item test-items)
     (with-temp-buffer
       (insert (nth 0 item))
-      (let* ((javaimp--parse-scope-hook parser)
+      (let* ((javaimp--parse-scope-hook
+              (lambda (arg)
+                (save-excursion
+                  (funcall parser arg))))
              (scopes (javaimp--parse-get-all-scopes)))
         (should (= 1 (length scopes)))
         (should (eq (javaimp-scope-type (car scopes)) (nth 1 item)))



reply via email to

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