Skip to content

Commit

Permalink
Add test for GH-161
Browse files Browse the repository at this point in the history
  • Loading branch information
jrblevin committed Aug 30, 2016
1 parent c063c1f commit 13bec1a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/markdown-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -3605,6 +3605,14 @@ this is not header line
(fill-paragraph)
(should (string= (buffer-substring (point) (line-end-position)) "# this is header line")))))

(ert-deftest test-markdown-filling/unclosed-square-bracket ()
"Test fill-paragraph following an unclosed square bracket."
(markdown-test-string "```\n[3\n```\n\naaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbb"
(let ((fill-column 20))
(forward-line 4)
(fill-paragraph)
(should (looking-at "aaaaaaaaaaaaaaaa\nbbbbbbbbbbbbbbbb")))))

;;; Export tests:

(ert-deftest test-markdown-hook/xhtml-standalone ()
Expand Down

0 comments on commit 13bec1a

Please sign in to comment.