We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b2d83f + 9046864 commit 37e20e2Copy full SHA for 37e20e2
tests/haskell-indentation-tests.el
@@ -609,7 +609,7 @@ foo = do
609
where
610
bar = undefined"
611
((4 0) 4))
612
-
+
613
(hindent-test "27* expecting then (GH-884)" "
614
foo = do
615
if True
@@ -906,5 +906,13 @@ function =
906
(should (equal 4 (count-lines (point-min) (point))))
907
(should (equal 2 (- (point) (line-beginning-position)))))
908
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)))))
917
918
;;; haskell-indentation-tests.el ends here
0 commit comments