Skip to content

Commit

Permalink
Add pathological test for commonmark/cmark#178.
Browse files Browse the repository at this point in the history
commonmark/commonmark.js@903f35e
Author: John MacFarlane <jgm@berkeley.edu>
Date:   Fri Aug 30 16:24:48 2019 -0700

Fix pathological case commonmark/cmark#178.

commonmark/commonmark.js@34b8f65
Author: John MacFarlane <jgm@berkeley.edu>
Date:   Fri Aug 30 16:28:09 2019 -0700
  • Loading branch information
taku0 committed Dec 28, 2019
1 parent 68e7319 commit 479f13f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/cmark-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,18 @@ Otherwise, MESSAGE is appended to the ERROR-BUFFER."
cases)
(setq x (* 10 x))))

(let ((x 1000))
(while (<= x 10000)
(push
(make-cmark--pathologicalTest
:name (concat
(number-to-string x)
" openers and closers multiple of 3")
:input (concat "a**b" (cmark--repeat "c* " x))
:expected (concat "<p>a**b" (cmark--repeat "c* " (1- x)) "c*</p>\n"))
cases)
(setq x (* 10 x))))

(let ((x 1000))
(while (<= x 10000)
(push
Expand Down

0 comments on commit 479f13f

Please sign in to comment.