From 4ca2d3b88802fe9ccd52c3e4cf287c95bd93b8e4 Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Sun, 11 Jan 2015 11:59:27 +0300 Subject: [PATCH] Moved crash tests to separate file & added missed ones --- .../markdown-it/commonmark_extras.txt | 9 ------- test/fixtures/markdown-it/fatal.txt | 26 +++++++++++++++++++ 2 files changed, 26 insertions(+), 9 deletions(-) create mode 100644 test/fixtures/markdown-it/fatal.txt diff --git a/test/fixtures/markdown-it/commonmark_extras.txt b/test/fixtures/markdown-it/commonmark_extras.txt index c168431..a3477dd 100644 --- a/test/fixtures/markdown-it/commonmark_extras.txt +++ b/test/fixtures/markdown-it/commonmark_extras.txt @@ -106,16 +106,7 @@ Autolinks do not allow escaping: . -Should not throw exception on mailformed URI -. -[foo](<%test>) -. -

foo

-. - - Multiline title in definitions: - . [foo]: test ' 1 diff --git a/test/fixtures/markdown-it/fatal.txt b/test/fixtures/markdown-it/fatal.txt new file mode 100644 index 0000000..28831ae --- /dev/null +++ b/test/fixtures/markdown-it/fatal.txt @@ -0,0 +1,26 @@ +Should not throw exception on mailformed URI +. +[foo](<%test>) +. +

foo

+. + + + +Should not hang comments regexp +. +foo +. +

foo <!— xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ->

+

foo <!------------------------------------------------------------------->

+. + + +Should not hang cdata regexp +. +foo +. +

foo <![CDATA[ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ]>

+. \ No newline at end of file