diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/ox-jira-test.el | 13 | ||||
| -rw-r--r-- | test/ox-jira-test.org | 22 |
2 files changed, 34 insertions, 1 deletions
diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el index 07fc442..a8d250a 100644 --- a/test/ox-jira-test.el +++ b/test/ox-jira-test.el @@ -107,6 +107,19 @@ echo hello #+end_src " 'jira)))) +(ert-deftest ox-jira-test/example-blocks () + (should (equal "{noformat} +stuff that should + not be +formatted +{noformat} +" (org-export-string-as "#+begin_example +stuff that should + not be +formatted +#+end_example +" 'jira)))) + (provide 'ox-jira-test) ;;; ox-jira.el-test.el ends here diff --git a/test/ox-jira-test.org b/test/ox-jira-test.org index 5752b0c..f54f7c2 100644 --- a/test/ox-jira-test.org +++ b/test/ox-jira-test.org @@ -191,7 +191,27 @@ echo hello # echo world ,#+end_src - " 'jira)))) + " 'jira)))) + #+END_SRC + +** Examples + + I use example blocks for log & config file snippets, and output from + programs. + + #+BEGIN_SRC emacs-lisp + (ert-deftest ox-jira-test/example-blocks () + (should (equal "{noformat} + stuff that should + not be + formatted + {noformat} + " (org-export-string-as "#+begin_example + stuff that should + not be + formatted + ,#+end_example + " 'jira)))) #+END_SRC ** Provide |
