Browse Source

Sync pathological tests with cmark

pull/964/head
Alex Kocharin 1 year ago
parent
commit
49ca65bbef
  1. 8
      test/pathological.js
  2. 2
      test/pathological.json

8
test/pathological.js

@ -101,6 +101,10 @@ describe('Pathological sequences speed', () => {
await test_pattern('[ (]('.repeat(40000));
});
it('pattern ![[]() repeated', async () => {
await test_pattern('![[]()'.repeat(20000));
});
it('nested brackets', async () => {
await test_pattern('['.repeat(20000) + 'a' + ']'.repeat(20000));
});
@ -124,6 +128,10 @@ describe('Pathological sequences speed', () => {
it('unclosed links B', async () => {
await test_pattern('[a](b'.repeat(30000));
});
it('unclosed <!--', async () => {
await test_pattern('</' + '<!--'.repeat(100000));
});
});
describe('Markdown-it', () => {

2
test/pathological.json

@ -1 +1 @@
{ "md5": "da7a30ea2886aea813e50c2764ecc40f" }
{ "md5": "68c7c28fe0d4a34367f27dcbceec9fed" }

Loading…
Cancel
Save