diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-04-15 08:47:06 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-04-15 08:47:06 -0700 |
commit | 02c7e76675c96135a87d264b68347a0479a1047d (patch) | |
tree | fde8528dd1c4e81549e6613a6643d0641f017c15 | |
parent | d51bb0e45be412f1f36b010f7458d2c392e28f2b (diff) |
pathological_tests.py: added test for deeply nested lists.
-rw-r--r-- | test/pathological_tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
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("(<blockquote>\n){50000}")), + "deeply nested lists": + ("".join(map(lambda x: (" " * x + "* a\n"), range(0,1000))), + re.compile("<ul>\n(<li>a\n<ul>\n){999}<li>a</li>\n</ul>\n(</li>\n</ul>\n){999}")), "U+0000 in input": ("abc\u0000de\u0000", re.compile("abc\ufffd?de\ufffd?")), |