cmark
My personal build of CMark ✏️
- Commit
- 9f8ef820301951f36301c1a40d036cafeaa78619
- Parent
- 02c7e76675c96135a87d264b68347a0479a1047d
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
pathological_tests.py: make tests run faster.
- commented out the (already ignored) "many references" test, which
times out
- reduced the iterations for a couple other tests
Diffstat
1 file changed, 8 insertions, 8 deletions
diff --git a/test/pathological_tests.py b/test/pathological_tests.py
@@ -64,17 +64,17 @@ pathological = {
("abc\u0000de\u0000",
re.compile("abc\ufffd?de\ufffd?")),
"backticks":
- ("".join(map(lambda x: ("e" + "`" * x), range(1,10000))),
+ ("".join(map(lambda x: ("e" + "`" * x), range(1,5000))),
re.compile("^<p>[e`]*</p>\n$")),
"unclosed links A":
- ("[a](<b" * 50000,
- re.compile("(\[a\]\(<b){50000}")),
+ ("[a](<b" * 30000,
+ re.compile("(\[a\]\(<b){30000}")),
"unclosed links B":
- ("[a](b" * 50000,
- re.compile("(\[a\]\(b){50000}")),
- "many references":
- ("".join(map(lambda x: ("[" + str(x) + "]: u\n"), range(1,50000 * 16))) + "[0] " * 50000,
- re.compile("(\[0\] ){49999}"))
+ ("[a](b" * 30000,
+ re.compile("(\[a\]\(b){30000}")),
+# "many references":
+# ("".join(map(lambda x: ("[" + str(x) + "]: u\n"), range(1,5000 * 16))) + "[0] " * 5000,
+# re.compile("(\[0\] ){4999}"))
}
whitespace_re = re.compile('/s+/')