aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStig Brautaset <sbrautaset@laterpay.net>2016-02-26 17:45:43 +0000
committerStig Brautaset <sbrautaset@laterpay.net>2016-02-26 17:45:43 +0000
commita61082e70d82216bb4287b9f862058befd8718f5 (patch)
tree5c136bf3241eccf4e0b4debfbc6cd014390ea32e /test
parentf61b95bb5b8f7133f8f7f6ef348b384a577d3f72 (diff)
Support for simple statistics cookies
Diffstat (limited to 'test')
-rw-r--r--test/ox-jira-test.el8
-rw-r--r--test/ox-jira-test.org14
2 files changed, 22 insertions, 0 deletions
diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el
index 8016bce..1ce4c1c 100644
--- a/test/ox-jira-test.el
+++ b/test/ox-jira-test.el
@@ -109,6 +109,14 @@ fum" 'jira))))
" (org-export-string-as "- [ ] fi
- [X] fo" 'jira))))
+(ert-deftest ox-jira-test/checkboxes-and-statistics()
+ (should (equal "h1. Progress \\[50%]
+* (x) fi
+* (/) fo
+" (org-export-string-as "* Progress [50%]
+- [ ] fi
+- [X] fo" 'jira))))
+
(ert-deftest ox-jira-test/src-blocks ()
(should (equal "{code:none}
echo hello
diff --git a/test/ox-jira-test.org b/test/ox-jira-test.org
index c02e2e3..eb64ac4 100644
--- a/test/ox-jira-test.org
+++ b/test/ox-jira-test.org
@@ -207,6 +207,20 @@
- [X] fo" 'jira))))
#+END_SRC
+ Ok, now add statistics cookies...
+
+ #+BEGIN_SRC emacs-lisp
+ (ert-deftest ox-jira-test/checkboxes-and-statistics()
+ (should (equal "h1. Progress \\[50%]
+ ,* (x) fi
+ ,* (/) fo
+ " (org-export-string-as "* Progress [50%]
+ - [ ] fi
+ - [X] fo" 'jira))))
+ #+END_SRC
+
+
+
** Source code
I use Org mode for literate programming, and executable lab notes, so we