Skip to content

Commit

Permalink
Test indentation after enter key with pre blocks
Browse files Browse the repository at this point in the history
Test case for #28
  • Loading branch information
jrblevin committed Dec 16, 2015
1 parent 729ebd5 commit 6f09417
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/markdown-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,17 @@ the opening bracket of [^2], and then subsequent functions would kill [^2])."
(should (string-equal (buffer-string) " * item 1\n "))
(should (eq (point) 14))))

(ert-deftest test-markdown-indentation/indent-pre ()
"Test `markdown-indent-line' with a pre block."
(markdown-test-string
"I'm gonna write a code block:

my first line of code"
(goto-char (point-max))
(markdown-enter-key)
(should (eq (point) 62))
(should (looking-back "^ "))))

;;; Font lock tests:

(ert-deftest test-markdown-font-lock/italics-1 ()
Expand Down

0 comments on commit 6f09417

Please sign in to comment.