From 02c7e76675c96135a87d264b68347a0479a1047d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 15 Apr 2018 08:47:06 -0700 Subject: pathological_tests.py: added test for deeply nested lists. --- test/pathological_tests.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/pathological_tests.py') diff --git a/test/pathological_tests.py b/test/pathological_tests.py index 613f2e5..de7d3b7 100644 --- a/test/pathological_tests.py +++ b/test/pathological_tests.py @@ -57,6 +57,9 @@ pathological = { "nested block quotes": ((("> " * 50000) + "a"), re.compile("(
\n){50000}")), + "deeply nested lists": + ("".join(map(lambda x: (" " * x + "* a\n"), range(0,1000))), + re.compile("\n){999}")), "U+0000 in input": ("abc\u0000de\u0000", re.compile("abc\ufffd?de\ufffd?")), -- cgit v1.2.3