Skip to content

Commit 49ca65b

Browse files
committed
Sync pathological tests with cmark
1 parent 2b6cac2 commit 49ca65b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Diff for: test/pathological.js

+8
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ describe('Pathological sequences speed', () => {
101101
await test_pattern('[ (]('.repeat(40000));
102102
});
103103

104+
it('pattern ![[]() repeated', async () => {
105+
await test_pattern('![[]()'.repeat(20000));
106+
});
107+
104108
it('nested brackets', async () => {
105109
await test_pattern('['.repeat(20000) + 'a' + ']'.repeat(20000));
106110
});
@@ -124,6 +128,10 @@ describe('Pathological sequences speed', () => {
124128
it('unclosed links B', async () => {
125129
await test_pattern('[a](b'.repeat(30000));
126130
});
131+
132+
it('unclosed <!--', async () => {
133+
await test_pattern('</' + '<!--'.repeat(100000));
134+
});
127135
});
128136

129137
describe('Markdown-it', () => {

Diff for: test/pathological.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "md5": "da7a30ea2886aea813e50c2764ecc40f" }
1+
{ "md5": "68c7c28fe0d4a34367f27dcbceec9fed" }

0 commit comments

Comments
 (0)