diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2016-11-26 17:18:21 +0100 | 
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2016-11-26 17:31:28 +0100 | 
| commit | 450c43badee13eb84e771ecaf66f0ac113e111c0 (patch) | |
| tree | 6ef38c27d22c1534bc1ca74db37a2b1229410c7b | |
| parent | 2efea7a064e911311979e0387d6d99abe9c6020a (diff) | |
Added pathological test for backticks.
Currently aborts.
| -rw-r--r-- | test/pathological_tests.py | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/test/pathological_tests.py b/test/pathological_tests.py index b033308..eaf0a7c 100644 --- a/test/pathological_tests.py +++ b/test/pathological_tests.py @@ -52,7 +52,10 @@ pathological = {                    re.compile("(<blockquote>\n){50000}")),      "U+0000 in input":                   ("abc\u0000de\u0000", -                  re.compile("abc\ufffd?de\ufffd?")) +                  re.compile("abc\ufffd?de\ufffd?")), +    "backticks": +                 ("".join(map(lambda x: ("e" + "`" * x), range(1,10000))), +                  re.compile("^<p>[e`]*</p>\n$"))      }  whitespace_re = re.compile('/s+/') | 
