Browse Source

Add pathological test from cmark

pull/817/head
Alex Kocharin 3 years ago
parent
commit
77fb93739d
  1. 4
      test/pathological.js
  2. 2
      test/pathological.json

4
test/pathological.js

@ -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)));
});

2
test/pathological.json

@ -1 +1 @@
{ "md5": "16f68052e677d03910d777af610e965d" }
{ "md5": "10730e0b6dec7355412bb632e9eb1d98" }

Loading…
Cancel
Save