From 28a2001baee1f10a8de7b3d41a821666ed5ee1d9 Mon Sep 17 00:00:00 2001 From: Stig Brautaset Date: Thu, 25 Feb 2016 18:36:10 +0000 Subject: Support (very) simple headlines --- test/ox-jira-test.el | 8 ++++++++ test/ox-jira-test.org | 14 ++++++++++++++ 2 files changed, 22 insertions(+) (limited to 'test') 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. -- cgit v1.2.3