From b5c4a228252d8351ca42c0ae3bca626dabfff66d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 3 Jan 2017 23:27:38 -0800 Subject: Added pathological test for #178 (quadratic). The new "multiple of 3" rule defeats one of our optimizations. --- test/pathological_tests.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/pathological_tests.py') diff --git a/test/pathological_tests.py b/test/pathological_tests.py index eaf0a7c..77e4165 100644 --- a/test/pathological_tests.py +++ b/test/pathological_tests.py @@ -38,6 +38,9 @@ pathological = { "mismatched openers and closers": (("*a_ " * 50000), re.compile("([*]a[_] ){49999}[*]a_")), + "openers and closers multiple of 3": + (("a**b" + ("c* " * 50000)), + re.compile("a[*][*]b(c[*] ){49999}c[*]")), "link openers and emph closers": (("[ a_" * 50000), re.compile("(\[ a_){50000}")), -- cgit v1.2.3