pathological_tests.py: Add test for reference definition lookup.
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+/')