diff options
| author | Stig Brautaset <stig@brautaset.org> | 2017-01-11 15:49:59 +0000 |
|---|---|---|
| committer | Stig Brautaset <stig@brautaset.org> | 2017-01-12 23:37:14 +0000 |
| commit | 3a2467d4050637a0551e1fac957f85644147d280 (patch) | |
| tree | 46c98d74ea10357fdcf5f6a76ba5c59241f5f792 /test | |
| parent | 8b28523c2c78a772443c3723514b688dfc880cad (diff) | |
Make timestamps behave more like in ox-latex
If no brackets are desired, one can make them non-timestamps (i.e.
plain text)
Diffstat (limited to 'test')
| -rw-r--r-- | test/ox-jira-test.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/ox-jira-test.el b/test/ox-jira-test.el index 38c30d2..a302678 100644 --- a/test/ox-jira-test.el +++ b/test/ox-jira-test.el @@ -313,12 +313,15 @@ h1. Footnotes [fn:2] fut fut. ")))) - (ert-deftest ox-jira-test/timestamps () - (should (equal "An inactive timestamp: 2017-01-11\n" - (to-jira "An inactive timestamp: [2017-01-11 Wed]"))) - (should (equal "An active timestamp: 2017-01-11\n" - (to-jira "An active timestamp: <2017-01-11 Wed>")))) + (should (equal "An inactive datestamp: _\\[2017-01-11 Wed]_\n" + (to-jira "An inactive datestamp: [2017-01-11 Wed]"))) + (should (equal "An inactive timestamp: _\\[2017-01-11 Wed 12:34]_\n" + (to-jira "An inactive timestamp: [2017-01-11 Wed 12:34]"))) + (should (equal "An active datestamp: _<2017-01-11 Wed>_\n" + (to-jira "An active datestamp: <2017-01-11 Wed>"))) + (should (equal "An active timestamp: _<2017-01-11 Wed 02:12>_\n" + (to-jira "An active timestamp: <2017-01-11 Wed 02:12>")))) (provide 'ox-jira-test) |
