From b59d6d5cbf521d6f6557a29dfd5589c51ae73789 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Mon, 25 Aug 2014 13:49:46 -0400 Subject: 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. --- tests/misc/email.html | 3 ++- tests/misc/email.txt | 2 ++ tests/misc/escaped_links.html | 3 ++- tests/misc/escaped_links.txt | 2 ++ tests/misc/image.html | 4 +++- tests/misc/image.txt | 6 ++++++ tests/options/no-smart-emphasis.html | 1 + tests/options/no-smart-emphasis.txt | 1 + tests/options/test.cfg | 3 +++ 9 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 tests/options/no-smart-emphasis.html create mode 100644 tests/options/no-smart-emphasis.txt 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 @@

asdfasdfadsfasd yuri@freewisdom.org or you can say -instead yuri@freewisdom.org

\ No newline at end of file +instead yuri@freewisdom.org

+

bob&sue@example.com

\ 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 or you can say instead + + 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 @@

Backslashed in links:

q=go:GO\:0000307

-

q=go:GO\:0000308

\ No newline at end of file +

q=go:GO\:0000308

+

a \non-escaped char.

\ 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 @@ -

Poster

\ No newline at end of file +

Poster

+

Poster

+

Blank

\ 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 diff --git a/tests/options/no-smart-emphasis.html b/tests/options/no-smart-emphasis.html new file mode 100644 index 0000000..c4f1381 --- /dev/null +++ b/tests/options/no-smart-emphasis.html @@ -0,0 +1 @@ +

connectedwords_

\ No newline at end of file diff --git a/tests/options/no-smart-emphasis.txt b/tests/options/no-smart-emphasis.txt new file mode 100644 index 0000000..cf500b5 --- /dev/null +++ b/tests/options/no-smart-emphasis.txt @@ -0,0 +1 @@ +_connected_words_ \ No newline at end of file diff --git a/tests/options/test.cfg b/tests/options/test.cfg index eb8b853..2e14f1f 100644 --- a/tests/options/test.cfg +++ b/tests/options/test.cfg @@ -6,3 +6,6 @@ html4: no-attributes: enable_attributes: False + +no-smart-emphasis: + smart_emphasis: False \ No newline at end of file -- cgit v1.2.3