aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStig Brautaset <stig@brautaset.org>2016-03-05 22:33:28 +0000
committerStig Brautaset <stig@brautaset.org>2016-03-05 22:42:16 +0000
commit0428f53993c70a8966ccd76aa0671e0b4af97012 (patch)
treec2f3f5ae4b1ba079d1673edc65d4f74bf7813295 /test
parent9d09163ebd08939feaf104ba567b09ec313d17de (diff)
Simple footnotes handling
Diffstat (limited to 'test')
-rw-r--r--test/ox-jira-test.el15
-rw-r--r--test/ox-jira-test.org19
2 files changed, 34 insertions, 0 deletions
diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el
index b9a0dff..6c03e89 100644
--- a/test/ox-jira-test.el
+++ b/test/ox-jira-test.el
@@ -203,6 +203,21 @@ formatted
#+end_example
" 'jira))))
+(ert-deftest ox-jira-test/footnotes ()
+ (should (equal "fi fo{anchor:backfn1}[^1^|#fn1]. Another one{anchor:backfn2}[^2^|#fn2].
+
+h1. Footnotes
+{anchor:fn1}[^1^|#backfn1] fa fum.
+{anchor:fn2}[^2^|#backfn2] fut fut.
+" (org-export-string-as "fi fo[fn:1]. Another one[fn:2].
+
+* Footnotes
+
+[fn:1] fa fum.
+
+[fn:2] fut fut.
+" '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 e1f461b..1d9fabf 100644
--- a/test/ox-jira-test.org
+++ b/test/ox-jira-test.org
@@ -327,6 +327,25 @@
" 'jira))))
#+END_SRC
+** Footnotes
+
+ #+BEGIN_SRC emacs-lisp
+ (ert-deftest ox-jira-test/footnotes ()
+ (should (equal "fi fo{anchor:backfn1}[^1^|#fn1]. Another one{anchor:backfn2}[^2^|#fn2].
+
+ h1. Footnotes
+ {anchor:fn1}[^1^|#backfn1] fa fum.
+ {anchor:fn2}[^2^|#backfn2] fut fut.
+ " (org-export-string-as "fi fo[fn:1]. Another one[fn:2].
+
+ ,* Footnotes
+
+ [fn:1] fa fum.
+
+ [fn:2] fut fut.
+ " 'jira))))
+ #+END_SRC
+
** Provide
Announce that =ox-jira-test= is a feature of the current Emacs.