From 06004bd900b7425641932d27f0bb5a77fadfcff5 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 23 Jun 2011 13:56:40 -0400 Subject: Added test for escaping chars in link urls. Closes #14 which was fixed in previous commits. This addes the missing tests. --- tests/misc/escaped_links.html | 3 +++ tests/misc/escaped_links.txt | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/misc/escaped_links.html create mode 100644 tests/misc/escaped_links.txt diff --git a/tests/misc/escaped_links.html b/tests/misc/escaped_links.html new file mode 100644 index 0000000..eb4a118 --- /dev/null +++ b/tests/misc/escaped_links.html @@ -0,0 +1,3 @@ +

Backslashed in links:

+

q=go:GO\:0000307

+

q=go:GO\:0000308

\ No newline at end of file diff --git a/tests/misc/escaped_links.txt b/tests/misc/escaped_links.txt new file mode 100644 index 0000000..25d5e3f --- /dev/null +++ b/tests/misc/escaped_links.txt @@ -0,0 +1,7 @@ +Backslashed in links: + +[q=go:GO\\:0000307](/query?q=go:GO\\:0000307) + +[q=go:GO\\:0000308][foo] + +[foo]: /query?q=go:GO\:0000308 "/query?q=go:GO\:0000308" -- cgit v1.2.3