Skip to content

Commit

Permalink
add test for issue #21
Browse files Browse the repository at this point in the history
  • Loading branch information
ikirudennis committed Dec 11, 2015
1 parent 307b2d0 commit dde6d24
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_github_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,14 @@ def test_github_issue_20():
result = textile.textile(text)
expect = '\t<p>This is a link to a <a href="http://en.wikipedia.org/wiki/Textile_%28markup_language%29">Wikipedia article about Textile</a>.</p>'
assert result == expect

def test_github_issue_21():
text = '''h1. xml example
bc.
<foo>
bar
</foo>'''
result = textile.textile(text)
expect = '\t<h1>xml example</h1>\n\n<pre><code>\n&lt;foo&gt;\n bar\n&lt;/foo&gt;\n</code></pre>'
assert result == expect

0 comments on commit dde6d24

Please sign in to comment.