branch: externals/javaimp
commit 74f101433b1821ed4827b4ac2a1ddcad6542630a
Author: Filipp Gunbin <[email protected]>
Commit: Filipp Gunbin <[email protected]>
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)))