Skip to content

Commit 547ac4f

Browse files
committed
Add tests for module indentation
1 parent cff017b commit 547ac4f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/haskell-indentation-tests.el

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,29 @@ data Foo = Bar
952952
(2 9)
953953
(3 9))
954954

955+
(hindent-test "56 module name on next line" "
956+
module
957+
X"
958+
(1 0)
959+
(2 2))
960+
961+
(hindent-test "57* module continued" "
962+
module X"
963+
(1 0)
964+
(2 2))
965+
966+
(hindent-test "58 module where same line" "
967+
module X where"
968+
(1 0)
969+
(2 0))
970+
971+
(hindent-test "59* module where same line" "
972+
module X
973+
where"
974+
(1 0)
975+
(2 0)
976+
(3 0))
977+
955978
(ert-deftest haskell-indentation-ret-indents ()
956979
(with-temp-switch-to-buffer
957980
(haskell-mode)

0 commit comments

Comments
 (0)