Skip to content

Commit

Permalink
Added pathological test for #178 (quadratic).
Browse files Browse the repository at this point in the history
The new "multiple of 3" rule defeats one of our optimizations.
  • Loading branch information
jgm committed Jan 4, 2017
1 parent 0453926 commit b5c4a22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/pathological_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
"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}")),
Expand Down

0 comments on commit b5c4a22

Please sign in to comment.