diff options
author | Matthew Peveler <matt.peveler@gmail.com> | 2021-10-17 17:56:32 -1000 |
---|---|---|
committer | Matthew Peveler <matt.peveler@gmail.com> | 2021-10-17 17:56:32 -1000 |
commit | f19e92e74e6770b7552cab7172cbcd487a285eb4 (patch) | |
tree | 3e1e35902f5ac48021e338f266f4f5dd57992263 | |
parent | e17f2f3ee6ec930ad5fd78164849c8870ab40a28 (diff) | |
download | asciidoc-py3-mpeveler/bugfix-escape-attribute.tar.gz |
add some additional test casesmpeveler/bugfix-escape-attribute
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rw-r--r-- | tests/test_asciidoc.py | 8 |
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' |