Skip to content

Commit 37e20e2

Browse files
committed
Merge pull request #1010 from emmanueltouzery/bug981_failing_test
Failing testcase for bug #981: M-j to continue a comment on the next lines indents the next line
2 parents 6b2d83f + 9046864 commit 37e20e2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/haskell-indentation-tests.el

+9-1
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ foo = do
609609
where
610610
bar = undefined"
611611
((4 0) 4))
612-
612+
613613
(hindent-test "27* expecting then (GH-884)" "
614614
foo = do
615615
if True
@@ -906,5 +906,13 @@ function =
906906
(should (equal 4 (count-lines (point-min) (point))))
907907
(should (equal 2 (- (point) (line-beginning-position)))))
908908

909+
(ert-deftest haskell-indentation-altj-comment ()
910+
:expected-result :failed
911+
(switch-to-buffer (get-buffer-create "another.hs"))
912+
(haskell-mode)
913+
(insert "main = do\n return ()\n\n-- comment")
914+
(execute-kbd-macro (kbd "M-j"))
915+
(should (equal 2 (count-lines (point-min) (point))))
916+
(should (equal 3 (- (point) (line-beginning-position)))))
909917

910918
;;; haskell-indentation-tests.el ends here

0 commit comments

Comments
 (0)