Skip to content

Commit

Permalink
Test indentation of single list item
Browse files Browse the repository at this point in the history
Fixed in 0c71203.
Closes #30
  • Loading branch information
jrblevin committed Dec 16, 2015
1 parent 0c71203 commit 729ebd5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/markdown-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -1606,6 +1606,15 @@ the opening bracket of [^2], and then subsequent functions would kill [^2])."
(markdown-enter-key)
(should (eq (point) 78))))

(ert-deftest test-markdown-indentation/indent-list-single ()
"Test `markdown-indent-line' with single list item."
(markdown-test-string
" * item 1"
(end-of-line)
(markdown-enter-key)
(should (string-equal (buffer-string) " * item 1\n "))
(should (eq (point) 14))))

;;; Font lock tests:

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

0 comments on commit 729ebd5

Please sign in to comment.