Skip to content

Commit abd3045

Browse files
committed
Merge pull request #852 from khumba/haddock-fill-tests
Add regression tests for Haddock comment fill bug #851.
2 parents cb2ec4c + 6b0f001 commit abd3045

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/haskell-mode-tests.el

+13
Original file line numberDiff line numberDiff line change
@@ -372,4 +372,17 @@ Also should respect 10 column fill."
372372
"--f g h"
373373
" -- i j")))
374374

375+
(ert-deftest fill-comment-haddock-1 ()
376+
(check-fill '("-- | a b c"
377+
"-- d")
378+
'("-- @| a b c d")))
379+
380+
(ert-deftest fill-comment-haddock-2 ()
381+
;; FIXME: This shouldn't be failing, https://github.com/haskell/haskell-mode/issues/851.
382+
:expected-result :failed
383+
(check-fill '("-- | a b c"
384+
"-- d e")
385+
'("-- @| a b c d"
386+
"-- e")))
387+
375388
(provide 'haskell-mode-tests)

0 commit comments

Comments
 (0)