From 77fb93739d2fb46242d40afed51af856b2223e2a Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Thu, 29 Jul 2021 19:30:05 +0300 Subject: [PATCH] Add pathological test from cmark --- test/pathological.js | 4 ++++ test/pathological.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/pathological.js b/test/pathological.js index af3f90f1a..f8c69047e 100644 --- a/test/pathological.js +++ b/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))); }); diff --git a/test/pathological.json b/test/pathological.json index d44b8edf2..7339947ad 100644 --- a/test/pathological.json +++ b/test/pathological.json @@ -1 +1 @@ -{ "md5": "16f68052e677d03910d777af610e965d" } +{ "md5": "10730e0b6dec7355412bb632e9eb1d98" }