cmark

My personal build of CMark ✏️

Commit
02c7e76675c96135a87d264b68347a0479a1047d
Parent
d51bb0e45be412f1f36b010f7458d2c392e28f2b
Author
John MacFarlane <jgm@berkeley.edu>
Date

pathological_tests.py: added test for deeply nested lists.

Diffstat

1 file changed, 3 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified test/pathological_tests.py 3 3 0
diff --git 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?")),