emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/markdown-mode d5106ff 6/8: Add unit test for markdown code


From: ELPA Syncer
Subject: [nongnu] elpa/markdown-mode d5106ff 6/8: Add unit test for markdown code block braces
Date: Wed, 6 Jan 2021 19:57:12 -0500 (EST)

branch: elpa/markdown-mode
commit d5106ff6823b93593beebe1618582e6ecb21d70c
Author: Shohei YOSHIDA <syohex@gmail.com>
Commit: Shohei YOSHIDA <syohex@gmail.com>

    Add unit test for markdown code block braces
---
 tests/markdown-test.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/markdown-test.el b/tests/markdown-test.el
index 99b9ad3..a6b200f 100644
--- a/tests/markdown-test.el
+++ b/tests/markdown-test.el
@@ -6185,6 +6185,13 @@ Details: 
https://github.com/jrblevin/markdown-mode/issues/534";
     (should (equal (buffer-substring-no-properties (point) (point-max))
                    "\n    bar\n    ```\n\n"))))
 
+(ert-deftest test-markdown-gfm/markdown-code-block-braces ()
+  "Test `markdown-gfm-use-electric-backquote'."
+  (markdown-test-string-gfm ""
+    (let ((markdown-code-block-braces t))
+      (markdown-insert-gfm-code-block "elisp")
+      (should (equal (buffer-string) "```{elisp}\n\n```")))))
+
 (ert-deftest test-markdown-gfm/gfm-parse-buffer-for-languages ()
   "Parse buffer for existing languages for `markdown-gfm-used-languages' test."
   (markdown-test-string-gfm "``` MADEUP\n\n```\n``` 
LANGUAGES\n\n```\n```MaDeUp\n\n```\n```\n\n```\n``` \n\n```\n"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]