Skip to content

Commit

Permalink
Add pathological test from cmark
Browse files Browse the repository at this point in the history
  • Loading branch information
rlidwka committed Jul 29, 2021
1 parent eed156e commit 8f3e292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions test/pathological.js
Expand Up @@ -81,6 +81,10 @@ describe('Pathological sequences speed', () => {
await test_pattern('*a_ '.repeat(50000));
});

it('commonmark/cmark#389', async () => {
await test_pattern('*a '.repeat(20000) + '_a*_ '.repeat(20000));
});

it('openers and closers multiple of 3', async () => {
await test_pattern('a**b' + ('c* '.repeat(50000)));
});
Expand Down
2 changes: 1 addition & 1 deletion test/pathological.json
@@ -1 +1 @@
{ "md5": "16f68052e677d03910d777af610e965d" }
{ "md5": "10730e0b6dec7355412bb632e9eb1d98" }

0 comments on commit 8f3e292

Please sign in to comment.