Commit c52a50a3dbe065da5a428cd5c51fec005e29d314

Martin Mitas 2017-07-24T21:07:09

pathological_tests.py: Add test for reference definition lookup.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
index 1c94b55..5b03408 100644
--- a/test/pathological_tests.py
+++ b/test/pathological_tests.py
@@ -61,7 +61,10 @@ pathological = {
                   re.compile("^<p>[e`]*</p>\r?\n$")),
     "many links":
                  ("[t](/u) " * 50000,
-                  re.compile("(<a href=\"/u\">t</a> ?){50000}"))
+                  re.compile("(<a href=\"/u\">t</a> ?){50000}")),
+    "many references":
+                 ("".join(map(lambda x: ("[" + str(x) + "]: /url\n\n[0]\n\n"), range(1,65000))),
+                  re.compile("^(<p>\\[0\\]</p>\r?\n)*$")),
     }
 
 whitespace_re = re.compile('/s+/')