From 1acd161b2f25e71a40c903ea8997a6ee2f4694d2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 10 Jun 2015 13:08:09 -0700 Subject: Added more pathological tests. Many link closers with no openers. Many link openers with no closers. Many emph openers with no closers. --- test/pathological_tests.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/pathological_tests.py') 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}")), -- cgit v1.2.3