commit c52a50a3dbe065da5a428cd5c51fec005e29d314
parent f0103c16e18a9328fb535ffbac0d4d3a81043852
Author: Martin Mitas <mity@morous.org>
Date: Mon, 24 Jul 2017 21:07:09 +0200
pathological_tests.py: Add test for reference definition lookup.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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+/')