aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/misc/email.html3
-rw-r--r--tests/misc/email.txt2
-rw-r--r--tests/misc/escaped_links.html3
-rw-r--r--tests/misc/escaped_links.txt2
-rw-r--r--tests/misc/image.html4
-rw-r--r--tests/misc/image.txt6
-rw-r--r--tests/options/no-smart-emphasis.html1
-rw-r--r--tests/options/no-smart-emphasis.txt1
-rw-r--r--tests/options/test.cfg3
9 files changed, 22 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="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#121;&#117;&#114;&#105;&#64;&#102;&#114;&#101;&#101;&#119;&#105;&#115;&#100;&#111;&#109;&#46;&#111;&#114;&#103;">&#121;&#117;&#114;&#105;&#64;&#102;&#114;&#101;&#101;&#119;&#105;&#115;&#100;&#111;&#109;&#46;&#111;&#114;&#103;</a> or you can say
-instead <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#121;&#117;&#114;&#105;&#64;&#102;&#114;&#101;&#101;&#119;&#105;&#115;&#100;&#111;&#109;&#46;&#111;&#114;&#103;">&#121;&#117;&#114;&#105;&#64;&#102;&#114;&#101;&#101;&#119;&#105;&#115;&#100;&#111;&#109;&#46;&#111;&#114;&#103;</a></p> \ No newline at end of file
+instead <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#121;&#117;&#114;&#105;&#64;&#102;&#114;&#101;&#101;&#119;&#105;&#115;&#100;&#111;&#109;&#46;&#111;&#114;&#103;">&#121;&#117;&#114;&#105;&#64;&#102;&#114;&#101;&#101;&#119;&#105;&#115;&#100;&#111;&#109;&#46;&#111;&#114;&#103;</a></p>
+<p><a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#98;&#111;&#98;&#38;&#115;&#117;&#101;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;">&#98;&#111;&#98;&amp;&#115;&#117;&#101;&#64;&#101;&#120;&#97;&#109;&#112;&#108;&#101;&#46;&#99;&#111;&#109;</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
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 @@
+<p><em>connected</em>words_</p> \ 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