summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-01-03 23:27:38 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2017-01-03 23:27:38 -0800
commitb5c4a228252d8351ca42c0ae3bca626dabfff66d (patch)
treedf1947a679049399534607ded2de683fa0addc36 /test
parent04539263eaeb06629a49fc5d531166e84162dd84 (diff)
Added pathological test for #178 (quadratic).
The new "multiple of 3" rule defeats one of our optimizations.
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 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}")),