Skip to content

Commit a3e6ed8

Browse files
committed
Improve can grab prefix tests a little
1 parent fac0463 commit a3e6ed8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/haskell-completions-tests.el

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,9 @@
6262
(save-excursion (insert "bcd"))
6363
(should (eql nil (haskell-completions-can-grab-prefix)))
6464
;; region case
65-
(let ((p (point)))
66-
(goto-char (point-min))
67-
(push-mark)
68-
(goto-char p)
69-
(activate-mark)
70-
(should (eql nil (haskell-completions-can-grab-prefix))))))
65+
(push-mark (point-min) t)
66+
(activate-mark)
67+
(should (eql nil (haskell-completions-can-grab-prefix)))))
7168

7269

7370
(ert-deftest haskell-completions-grab-pragma-prefix-nil-cases-test ()

0 commit comments

Comments
 (0)