cmark

My personal build of CMark ✏️

Commit
1acd161b2f25e71a40c903ea8997a6ee2f4694d2
Parent
4765fff411c4629ef8887d813ebd669b803b7336
Author
John MacFarlane <jgm@berkeley.edu>
Date

Added more pathological tests.

Many link closers with no openers. Many link openers with no closers. Many emph openers with no closers.

Diffstat

1 file changed, 9 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified test/pathological_tests.py 9 9 0
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
@@ -26,6 +26,15 @@ pathological = {
     "many emph closers with no openers":
                  (("a_ " * 65000),
                   re.compile("(a[_] ){64999}a_")),
+    "many emph openers with no closers":
+                 (("_a " * 65000),
+                  re.compile("(_a ){64999}_a")),
+    "many link closers with no openers":
+                 (("a]" * 65000),
+                  re.compile("(a\]){65000}")),
+    "many link openers with no closers":
+                 (("[a" * 65000),
+                  re.compile("(\[a){65000}")),
     "nested brackets":
                  (("[" * 50000) + "a" + ("]" * 50000),
                   re.compile("\[{50000}a\]{50000}")),