Skip to content

Commit

Permalink
Add pathological test for #172 illustrating quadratic time bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Aug 30, 2019
1 parent 34b8f65 commit 473be12
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test.js
Expand Up @@ -197,6 +197,12 @@ for (x=1000; x <= 10000; x *= 10) {
input: "a**b" + repeat("c* ", x),
expected: '<p>a**b' + repeat('c* ', x - 1) + 'c*</p>\n' });
}
for (x=1000; x <= 10000; x *= 10) {
cases.push(
{ name: x + ' #172',
input: repeat('*_* _ ', x),
expected: '<p>' + repeat('<em>_</em> _ ', x - 1) + '<em>_</em> _</p>\n' });
}
for (x = 1000; x <= 10000; x *= 10) {
cases.push(
{ name: x + ' link closers with no openers',
Expand Down

0 comments on commit 473be12

Please sign in to comment.