summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/pathological_tests.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
index 77e4165..6883c10 100644
--- a/test/pathological_tests.py
+++ b/test/pathological_tests.py
@@ -58,7 +58,16 @@ pathological = {
re.compile("abc\ufffd?de\ufffd?")),
"backticks":
("".join(map(lambda x: ("e" + "`" * x), range(1,10000))),
- re.compile("^<p>[e`]*</p>\n$"))
+ re.compile("^<p>[e`]*</p>\n$")),
+ "unclosed links A":
+ ("[a](<b" * 50000,
+ re.compile("(\[a\]\(&lt;b){50000}")),
+ "unclosed links B":
+ ("[a](b" * 50000,
+ re.compile("(\[a\]\(b){50000}")),
+ "many references":
+ ("".join(map(lambda x: ("[" + str(x) + "]: u\n"), range(1,50000 * 16))) + "[0] " * 50000,
+ re.compile("(\[0\] ){49999}"))
}
whitespace_re = re.compile('/s+/')