branch: elpa/beancount
commit 16c1b346f33a588df2dd258765658533b2edbcd7
Author: Daniele Nicolodi <[email protected]>
Commit: Daniele Nicolodi <[email protected]>
Fix thing-at-point tests
The beancount/link-at-point-002 test cannot work as written. Fix it.
---
beancount-tests.el | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/beancount-tests.el b/beancount-tests.el
index efab120ae8..409eef56e3 100644
--- a/beancount-tests.el
+++ b/beancount-tests.el
@@ -317,8 +317,6 @@ known option nmaes."
:tags '(regress thing-at-point)
(with-temp-buffer
(insert "^link")
- (beancount-mode)
- (goto-char 2)
(should (equal (thing-at-point 'beancount-link) "^link"))))
(ert-deftest beancount/link-at-point-002 ()
@@ -331,5 +329,5 @@ known option nmaes."
:tags '(regress thing-at-point)
(with-temp-buffer
(insert "foo ^link baz")
- (goto-char 15)
+ (goto-char 7)
(should (equal (thing-at-point 'beancount-link) "^link"))))