diff options
| author | Stig Brautaset <sbrautaset@laterpay.net> | 2016-02-25 18:36:10 +0000 |
|---|---|---|
| committer | Stig Brautaset <sbrautaset@laterpay.net> | 2016-02-25 18:36:10 +0000 |
| commit | 28a2001baee1f10a8de7b3d41a821666ed5ee1d9 (patch) | |
| tree | 9b7bf14d63747f82ded669e97d098afd1918fa48 /test | |
| parent | f92166883c28b51f1b30273e3add88fa2fb1ee39 (diff) | |
Support (very) simple headlines
Diffstat (limited to 'test')
| -rw-r--r-- | test/ox-jira-test.el | 8 | ||||
| -rw-r--r-- | test/ox-jira-test.org | 14 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el index 99e8f00..f3f8717 100644 --- a/test/ox-jira-test.el +++ b/test/ox-jira-test.el @@ -61,6 +61,14 @@ This is a quote with _emphasis_. This is a quote with /emphasis/. #+end_quote" 'jira)))) +(ert-deftest ox-jira-test/headlines () + (should (equal "h1. top level +h2. second level +h3. third level +" (org-export-string-as "* top level +** second level +*** third level" '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 fc68824..cbbd189 100644 --- a/test/ox-jira-test.org +++ b/test/ox-jira-test.org @@ -124,6 +124,20 @@ ,#+end_quote" 'jira)))) #+END_SRC +*** Headlines + + Headline numbering in org is _relative_, so we cannot test that they work one-by-one. + + #+BEGIN_SRC emacs-lisp + (ert-deftest ox-jira-test/headlines () + (should (equal "h1. top level + h2. second level + h3. third level + " (org-export-string-as "* top level + ,** second level + ,*** third level" 'jira)))) + #+END_SRC + *** Provide Announce that =ox-jira-test= is a feature of the current Emacs. |
