diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-11-05 12:57:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-05 12:57:21 -0500 |
commit | ed990f56553f4c144c57cdff85aaa1c437ba8be2 (patch) | |
tree | a35a01b5a83475a3494b0a0f448f34b3190ad2d8 /test/pathological_tests.py | |
parent | c739195a341787f89960c5938e4def8d54f66a5a (diff) | |
parent | 99c5675e2542221cae33cea063f34332ee443cb3 (diff) |
Merge pull request #230 from mity/more-pathological-tests
Add more pathological tests.
Diffstat (limited to 'test/pathological_tests.py')
-rw-r--r-- | test/pathological_tests.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/pathological_tests.py b/test/pathological_tests.py index 77e4165..6883c10 100644 --- a/test/pathological_tests.py +++ b/test/pathological_tests.py @@ -58,7 +58,16 @@ pathological = { re.compile("abc\ufffd?de\ufffd?")), "backticks": ("".join(map(lambda x: ("e" + "`" * x), range(1,10000))), - re.compile("^<p>[e`]*</p>\n$")) + re.compile("^<p>[e`]*</p>\n$")), + "unclosed links A": + ("[a](<b" * 50000, + re.compile("(\[a\]\(<b){50000}")), + "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}")) } whitespace_re = re.compile('/s+/') |