Skip to content

Commit 02c7e76

Browse files
committed
pathological_tests.py: added test for deeply nested lists.
1 parent d51bb0e commit 02c7e76

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/pathological_tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
"nested block quotes":
5858
((("> " * 50000) + "a"),
5959
re.compile("(<blockquote>\n){50000}")),
60+
"deeply nested lists":
61+
("".join(map(lambda x: (" " * x + "* a\n"), range(0,1000))),
62+
re.compile("<ul>\n(<li>a\n<ul>\n){999}<li>a</li>\n</ul>\n(</li>\n</ul>\n){999}")),
6063
"U+0000 in input":
6164
("abc\u0000de\u0000",
6265
re.compile("abc\ufffd?de\ufffd?")),

0 commit comments

Comments
 (0)