From cdd32e767b648002aa0ad3f9a563c971d46b9b8f Mon Sep 17 00:00:00 2001
From: rsiddharth <s@ricketyspace.net>
Date: Mon, 26 Feb 2018 00:24:02 +0000
Subject: tests: Add TestTWRenderer.test_render_def_link.

* tests/data/renderer-def-links-w.md: New file.
* tests/data/renderer-def-links.md: New file.
* tests/test_md_tw.py (test_render_def_link): New test method.
---
 tests/data/renderer-def-links-w.md | 34 ++++++++++++++++++++++++++++++++++
 tests/data/renderer-def-links.md   | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 tests/data/renderer-def-links-w.md
 create mode 100644 tests/data/renderer-def-links.md

(limited to 'tests/data')

diff --git a/tests/data/renderer-def-links-w.md b/tests/data/renderer-def-links-w.md
new file mode 100644
index 0000000..c09e417
--- /dev/null
+++ b/tests/data/renderer-def-links-w.md
@@ -0,0 +1,34 @@
+This is [an example](http://example.com/ "Title") inline link.
+
+[This link](http://example.net/) has no title attribute.
+
+See my [About](/about/) page for details.
+
+This is [Bob][bob]'s web space.
+
+This is [Alice][alice]'s web space.
+
+[bob]: http://bob.name/ "Bob's home"
+[alice]: <http://alice.name/> "Alice's home"
+
+Some foo[bar].
+
+[bar]: http://bar.beer/  "Foo Bar Beer"
+
+Visit [GNU.org][].
+
+[GNU.org]: http://gnu.org
+
+John Gruber gets 10 times more traffic from [Google][1] than from
+[Yahoo][2] or [MSN][3].
+
+  [1]: http://google.com/        "Google"
+  [2]: http://search.yahoo.com/  "Yahoo Search"
+  [3]: http://search.msn.com/    "MSN Search"
+
+John Gruber gets 10 times more traffic from [Google][] than from
+[Yahoo][] or [MSN][].
+
+  [google]: http://google.com/        "Google"
+  [yahoo]:  http://search.yahoo.com/  "Yahoo Search"
+  [msn]:    http://search.msn.com/    "MSN Search"
diff --git a/tests/data/renderer-def-links.md b/tests/data/renderer-def-links.md
new file mode 100644
index 0000000..c09e417
--- /dev/null
+++ b/tests/data/renderer-def-links.md
@@ -0,0 +1,34 @@
+This is [an example](http://example.com/ "Title") inline link.
+
+[This link](http://example.net/) has no title attribute.
+
+See my [About](/about/) page for details.
+
+This is [Bob][bob]'s web space.
+
+This is [Alice][alice]'s web space.
+
+[bob]: http://bob.name/ "Bob's home"
+[alice]: <http://alice.name/> "Alice's home"
+
+Some foo[bar].
+
+[bar]: http://bar.beer/  "Foo Bar Beer"
+
+Visit [GNU.org][].
+
+[GNU.org]: http://gnu.org
+
+John Gruber gets 10 times more traffic from [Google][1] than from
+[Yahoo][2] or [MSN][3].
+
+  [1]: http://google.com/        "Google"
+  [2]: http://search.yahoo.com/  "Yahoo Search"
+  [3]: http://search.msn.com/    "MSN Search"
+
+John Gruber gets 10 times more traffic from [Google][] than from
+[Yahoo][] or [MSN][].
+
+  [google]: http://google.com/        "Google"
+  [yahoo]:  http://search.yahoo.com/  "Yahoo Search"
+  [msn]:    http://search.msn.com/    "MSN Search"
-- 
cgit v1.2.3