- Commit
- 4765fff411c4629ef8887d813ebd669b803b7336
- Parent
- e1db44b114620c5a23708d851d64fb53dd84bde9
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Added pathological test case for jgm/commonmark#43.
Many closers with no openers.
My personal build of CMark ✏️
Added pathological test case for jgm/commonmark#43.
Many closers with no openers.
1 file changed, 3 insertions, 0 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | test/pathological_tests.py | 3 | 3 | 0 |
diff --git a/test/pathological_tests.py b/test/pathological_tests.py @@ -23,6 +23,9 @@ pathological = { "nested strong emph": (("*a **a " * 65000) + "b" + (" a** a*" * 65000), re.compile("(<em>a <strong>a ){65000}b( a</strong> a</em>){65000}")), + "many emph closers with no openers": + (("a_ " * 65000), + re.compile("(a[_] ){64999}a_")), "nested brackets": (("[" * 50000) + "a" + ("]" * 50000), re.compile("\[{50000}a\]{50000}")),