diff options
| author | Stig Brautaset <stig@brautaset.org> | 2016-02-25 23:37:13 +0000 |
|---|---|---|
| committer | Stig Brautaset <stig@brautaset.org> | 2016-02-26 00:11:28 +0000 |
| commit | 7701794469371efd3ca5317a9321814301c8f282 (patch) | |
| tree | 41334b96859ee5158512cce7ca0437e53949bb87 /test | |
| parent | 1b930266274450f56dd7a961e9ab3202d622ebaa (diff) | |
Support single-level ordered and unordered lists
Diffstat (limited to 'test')
| -rw-r--r-- | test/ox-jira-test.el | 20 | ||||
| -rw-r--r-- | test/ox-jira-test.org | 28 |
2 files changed, 47 insertions, 1 deletions
diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el index 5e1b83f..314b743 100644 --- a/test/ox-jira-test.el +++ b/test/ox-jira-test.el @@ -76,6 +76,26 @@ h3. third level ,fa ,fum" 'jira)))) +(ert-deftest ox-jira-test/unordered-lists() + (should (equal "- fi +- fo +- fa +- fum +" (org-export-string-as "- fi +- fo +- fa +- fum" 'jira)))) + +(ert-deftest ox-jira-test/ordered-lists() + (should (equal "# fi +# fo +# fa +# fum +" (org-export-string-as "1. fi +2. fo +3. fa +3. fum" '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 1694a01..8f7d693 100644 --- a/test/ox-jira-test.org +++ b/test/ox-jira-test.org @@ -1,4 +1,4 @@ -#+TITLE: ox-jira-test +#+TITLE: Tests for JIRA Org export backend #+AUTHOR: Stig Brautaset #+PROPERTY: header-args:emacs-lisp :tangle yes :results silent * Introduction @@ -150,6 +150,32 @@ ,fum" 'jira)))) #+END_SRC +** Plain lists + + I like to use lists, so check that we handle them! + + #+BEGIN_SRC emacs-lisp + (ert-deftest ox-jira-test/unordered-lists() + (should (equal "- fi + - fo + - fa + - fum + " (org-export-string-as "- fi + - fo + - fa + - fum" 'jira)))) + + (ert-deftest ox-jira-test/ordered-lists() + (should (equal "# fi + # fo + # fa + # fum + " (org-export-string-as "1. fi + 2. fo + 3. fa + 3. fum" 'jira)))) + #+END_SRC + ** Provide Announce that =ox-jira-test= is a feature of the current Emacs. |
