cmark

Unnamed repository; edit this file 'description' to name the repository.

commit 1acd161b2f25e71a40c903ea8997a6ee2f4694d2
parent 4765fff411c4629ef8887d813ebd669b803b7336
Author: John MacFarlane <jgm@berkeley.edu>
Date:   Wed, 10 Jun 2015 13:08:09 -0700

Added more pathological tests.

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

Diffstat:
Mtest/pathological_tests.py | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)
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}")),