Skip to content

Commit 450c43b

Browse files
committed
Added pathological test for backticks.
Currently aborts.
1 parent 2efea7a commit 450c43b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/pathological_tests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@
5252
re.compile("(<blockquote>\n){50000}")),
5353
"U+0000 in input":
5454
("abc\u0000de\u0000",
55-
re.compile("abc\ufffd?de\ufffd?"))
55+
re.compile("abc\ufffd?de\ufffd?")),
56+
"backticks":
57+
("".join(map(lambda x: ("e" + "`" * x), range(1,10000))),
58+
re.compile("^<p>[e`]*</p>\n$"))
5659
}
5760

5861
whitespace_re = re.compile('/s+/')

0 commit comments

Comments
 (0)