Skip to content

Commit

Permalink
Add inline-code test
Browse files Browse the repository at this point in the history
  • Loading branch information
vspinu committed Mar 15, 2019
1 parent d55d142 commit 1759d47
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/poly-markdown-tests.el
Expand Up @@ -272,6 +272,16 @@ $$E=mc^2$$ )
(pm-switch-to-buffer)
(should (eq major-mode 'pascal-mode))))

(ert-deftest poly-markdown/inline-code-in-host-mode ()
(pm-test-run-on-string 'poly-markdown-mode
"aaa `non-mode bbb` cccc"
(switch-to-buffer (current-buffer))
(goto-char 14)
(pm-switch-to-buffer)
(should (eq major-mode 'markdown-mode))
(should (eq (car (get-text-property (point) 'face))
'markdown-inline-code-face))))

(ert-deftest poly-markdown/displayed-math-both ()
(pm-test-run-on-string 'poly-markdown-mode
"Some text with
Expand Down

0 comments on commit 1759d47

Please sign in to comment.