Skip to content

Commit

Permalink
Add pathological test (commonmark/cmark#285).
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Mar 17, 2019
1 parent 63e929e commit d87807e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@ for (x = 1000; x <= 10000; x *= 10) {
input: repeat('*a_ ', x),
expected: '<p>' + repeat('*a_ ', x - 1) + '*a_</p>\n' });
}
for (x = 1000; x <= 10000; x *= 10) {
cases.push(
{ name: x + ' pattern [ (](',
input: repeat('[ (](', x),
expected: '<p>' + repeat('[ (](', x) + '</p>\n' });
}
for (x = 1000; x <= 10000; x *= 10) {
cases.push(
{ name: 'nested brackets ' + x + ' deep',
Expand Down

0 comments on commit d87807e

Please sign in to comment.