summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-11-26 17:18:21 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2016-11-26 17:31:28 +0100
commit450c43badee13eb84e771ecaf66f0ac113e111c0 (patch)
tree6ef38c27d22c1534bc1ca74db37a2b1229410c7b
parent2efea7a064e911311979e0387d6d99abe9c6020a (diff)
Added pathological test for backticks.
Currently aborts.
-rw-r--r--test/pathological_tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
index b033308..eaf0a7c 100644
--- a/test/pathological_tests.py
+++ b/test/pathological_tests.py
@@ -52,7 +52,10 @@ pathological = {
re.compile("(<blockquote>\n){50000}")),
"U+0000 in input":
("abc\u0000de\u0000",
- re.compile("abc\ufffd?de\ufffd?"))
+ re.compile("abc\ufffd?de\ufffd?")),
+ "backticks":
+ ("".join(map(lambda x: ("e" + "`" * x), range(1,10000))),
+ re.compile("^<p>[e`]*</p>\n$"))
}
whitespace_re = re.compile('/s+/')