summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-10 13:06:06 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-10 13:06:06 -0700
commit4765fff411c4629ef8887d813ebd669b803b7336 (patch)
treeee28871576eb54b213f46a5db26d96ec8463d97f /test
parente1db44b114620c5a23708d851d64fb53dd84bde9 (diff)
Added pathological test case for jgm/commonmark#43.
Many closers with no openers.
Diffstat (limited to 'test')
-rw-r--r--test/pathological_tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
index 0e991f9..450acbf 100644
--- a/test/pathological_tests.py
+++ b/test/pathological_tests.py
@@ -23,6 +23,9 @@ pathological = {
"nested strong emph":
(("*a **a " * 65000) + "b" + (" a** a*" * 65000),
re.compile("(<em>a <strong>a ){65000}b( a</strong> a</em>){65000}")),
+ "many emph closers with no openers":
+ (("a_ " * 65000),
+ re.compile("(a[_] ){64999}a_")),
"nested brackets":
(("[" * 50000) + "a" + ("]" * 50000),
re.compile("\[{50000}a\]{50000}")),