diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2014-08-25 13:49:46 -0400 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2014-08-25 13:49:46 -0400 |
commit | b59d6d5cbf521d6f6557a29dfd5589c51ae73789 (patch) | |
tree | 2af15d84c6d9e6b990932d97b49f5eae50492845 /tests/misc | |
parent | ed661f74428670df810d4d702cd31c760693b455 (diff) | |
download | markdown-b59d6d5cbf521d6f6557a29dfd5589c51ae73789.tar.gz markdown-b59d6d5cbf521d6f6557a29dfd5589c51ae73789.tar.bz2 markdown-b59d6d5cbf521d6f6557a29dfd5589c51ae73789.zip |
Added some inline pattenr tests.
markdown/inlinepatterns.py is now at 99% coverage.
I have no idea why the two remaining lines are not not covered.
I it not clear to me under what circumstances this two if statements
would ever evaluate to True. I'm inclined to just remove them, but perhaps
there is an edge case I'm missing. I'll take another look later.
Diffstat (limited to 'tests/misc')
-rw-r--r-- | tests/misc/email.html | 3 | ||||
-rw-r--r-- | tests/misc/email.txt | 2 | ||||
-rw-r--r-- | tests/misc/escaped_links.html | 3 | ||||
-rw-r--r-- | tests/misc/escaped_links.txt | 2 | ||||
-rw-r--r-- | tests/misc/image.html | 4 | ||||
-rw-r--r-- | tests/misc/image.txt | 6 |
6 files changed, 17 insertions, 3 deletions
diff --git a/tests/misc/email.html b/tests/misc/email.html index 0d033bb..8ef799f 100644 --- a/tests/misc/email.html +++ b/tests/misc/email.html @@ -1,2 +1,3 @@ <p>asdfasdfadsfasd <a href="mailto:yuri@freewisdom.org">yuri@freewisdom.org</a> or you can say -instead <a href="mailto:yuri@freewisdom.org">yuri@freewisdom.org</a></p>
\ No newline at end of file +instead <a href="mailto:yuri@freewisdom.org">yuri@freewisdom.org</a></p> +<p><a href="mailto:bob&sue@example.com">bob&sue@example.com</a></p>
\ No newline at end of file diff --git a/tests/misc/email.txt b/tests/misc/email.txt index ece8801..c557c73 100644 --- a/tests/misc/email.txt +++ b/tests/misc/email.txt @@ -1,3 +1,5 @@ asdfasdfadsfasd <yuri@freewisdom.org> or you can say instead <mailto:yuri@freewisdom.org> + +<bob&sue@example.com> diff --git a/tests/misc/escaped_links.html b/tests/misc/escaped_links.html index eb4a118..b2a7c96 100644 --- a/tests/misc/escaped_links.html +++ b/tests/misc/escaped_links.html @@ -1,3 +1,4 @@ <p>Backslashed in links:</p> <p><a href="/query?q=go:GO\:0000307">q=go:GO\:0000307</a></p> -<p><a href="/query?q=go:GO\:0000308" title="/query?q=go:GO\:0000308">q=go:GO\:0000308</a></p>
\ No newline at end of file +<p><a href="/query?q=go:GO\:0000308" title="/query?q=go:GO\:0000308">q=go:GO\:0000308</a></p> +<p>a \non-escaped char.</p>
\ No newline at end of file diff --git a/tests/misc/escaped_links.txt b/tests/misc/escaped_links.txt index 25d5e3f..c64ab26 100644 --- a/tests/misc/escaped_links.txt +++ b/tests/misc/escaped_links.txt @@ -5,3 +5,5 @@ Backslashed in links: [q=go:GO\\:0000308][foo] [foo]: /query?q=go:GO\:0000308 "/query?q=go:GO\:0000308" + +a \non-escaped char.
\ No newline at end of file diff --git a/tests/misc/image.html b/tests/misc/image.html index 16be2d5..aa24cef 100644 --- a/tests/misc/image.html +++ b/tests/misc/image.html @@ -1 +1,3 @@ -<p><img alt="Poster" src="http://humane_man.jpg" title="The most humane man." /></p>
\ No newline at end of file +<p><img alt="Poster" src="http://humane_man.jpg" title="The most humane man." /></p> +<p><img alt="Poster" src="http://humane_man.jpg" title="The most humane man." /></p> +<p><img alt="Blank" src="" /></p>
\ No newline at end of file diff --git a/tests/misc/image.txt b/tests/misc/image.txt index 5553bd4..41a8cf7 100644 --- a/tests/misc/image.txt +++ b/tests/misc/image.txt @@ -1,2 +1,8 @@ ![Poster](http://humane_man.jpg "The most humane man.") + +![Poster][] + +[Poster]:http://humane_man.jpg "The most humane man." + +![Blank]()
\ No newline at end of file |