From 4765fff411c4629ef8887d813ebd669b803b7336 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 10 Jun 2015 13:06:06 -0700 Subject: Added pathological test case for jgm/commonmark#43. Many closers with no openers. --- test/pathological_tests.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') 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("(a a ){65000}b( a a){65000}")), + "many emph closers with no openers": + (("a_ " * 65000), + re.compile("(a[_] ){64999}a_")), "nested brackets": (("[" * 50000) + "a" + ("]" * 50000), re.compile("\[{50000}a\]{50000}")), -- cgit v1.2.3