summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-10 13:08:09 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-10 13:08:09 -0700
commit1acd161b2f25e71a40c903ea8997a6ee2f4694d2 (patch)
tree1900c949b983591a47913c52edd2fd07b2413c56
parent4765fff411c4629ef8887d813ebd669b803b7336 (diff)
Added more pathological tests.
Many link closers with no openers. Many link openers with no closers. Many emph openers with no closers.
-rw-r--r--test/pathological_tests.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
index 450acbf..6e207ce 100644
--- 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}")),