From 450c43badee13eb84e771ecaf66f0ac113e111c0 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 26 Nov 2016 17:18:21 +0100 Subject: Added pathological test for backticks. Currently aborts. --- test/pathological_tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/pathological_tests.py') 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("(
\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("^

[e`]*

\n$")) } whitespace_re = re.compile('/s+/') -- cgit v1.2.3