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 e5986bb commit 77fb937
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "md5": "16f68052e677d03910d777af610e965d" }
{ "md5": "10730e0b6dec7355412bb632e9eb1d98" }

0 comments on commit 77fb937

Please sign in to comment.