Skip to content

Commit

Permalink
Added two pathological tests for #43.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Jun 11, 2015
1 parent 63376a0 commit 38d058a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,18 @@ 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 + ' link openers and emph closers',
input: repeat('[ a_ ', x),
expected: '<p>' + repeat('[ a_ ', x - 1) + '[ a_</p>\n' });
}
for (x = 1000; x <= 10000; x *= 10) {
cases.push(
{ name: x + ' mismatched openers and closers',
input: repeat('*a_ ', x),
expected: '<p>' + repeat('*a_ ', x - 1) + '*a_</p>\n' });
}
for (x = 1000; x <= 10000; x *= 10) {
cases.push(
{ name: 'nested brackets ' + x + ' deep',
Expand Down

0 comments on commit 38d058a

Please sign in to comment.