Skip to content

Commit f39548c

Browse files
committed
Merge pull request #440 from gracjan/pr-haskell-indent-tests-2
Document assertion in haskell-indent.
2 parents db3c604 + 160f527 commit f39548c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/haskell-indent-tests.el

+12
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
(require 'haskell-mode)
44

55

6+
(ert-deftest haskell-indent-in-comment-1 ()
7+
"Document bad behavior. Should not assert."
8+
:expected-result :failed
9+
(should (with-temp-buffer
10+
(haskell-mode)
11+
(haskell-indent-mode)
12+
(insert (concat "module Test where\n"
13+
"-- {{{ A header\n"
14+
"--\n"))
15+
(indent-for-tab-command)
16+
t)))
17+
618

719
;; haskell-indent-put-region-in-literate happens to be in haskell-indent
820
;; when the function is moved, move the tests also

0 commit comments

Comments
 (0)