summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_asciidoc.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_asciidoc.py b/tests/test_asciidoc.py
index 33f298a..9eeca08 100644
--- a/tests/test_asciidoc.py
+++ b/tests/test_asciidoc.py
@@ -7,10 +7,18 @@ import pytest
"input,expected",
(
(
+ '{attach}file.txt',
+ '<div class="paragraph"><p></p></div>\r\n'
+ ),
+ (
'\\{attach}file.txt',
'<div class="paragraph"><p>{attach}file.txt</p></div>\r\n'
),
(
+ 'link:{attach}file.txt[file]',
+ '<div class="paragraph"><p></p></div>\r\n'
+ ),
+ (
'link:\\{attach}file.txt[file]',
'<div class="paragraph"><p>' +
'<a href="{attach}file.txt">file</a></p></div>\r\n'