Skip to content

Commit

Permalink
Test beginning-of-defun at point-max
Browse files Browse the repository at this point in the history
This is related to GH-197.
  • Loading branch information
jrblevin committed Jun 13, 2017
1 parent 66dba87 commit fba4581
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/markdown-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -3789,6 +3789,12 @@ date = 2015-08-13 11:35:25 EST
(beginning-of-defun -1)
(should (looking-at "### Third level number two ###"))))

(ert-deftest test-markdown-movement/beginning-of-defun-at-point-max ()
"Test beginning of defun navigation at point-max."
(markdown-test-file "outline.text"
(goto-char (point-max))
(beginning-of-defun)))

(ert-deftest test-markdown-movement/text-block ()
"Test plain text block movement."
(markdown-test-file "outline.text"
Expand Down

0 comments on commit fba4581

Please sign in to comment.