Skip to content

Commit 8ac778a

Browse files
committed
awkward fuzz case.
1 parent 238c87a commit 8ac778a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/tests/fuzz.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use std::sync::Arc;
2+
13
use super::*;
24

35
#[test]
@@ -551,3 +553,17 @@ fn cursed_lands() {
551553

552554
markdown_to_html("[^[email protected]]", &opts);
553555
}
556+
557+
#[test]
558+
fn inquisitor() {
559+
let mut opts = Options::default();
560+
opts.parse.broken_link_callback = Some(Arc::new(|link_ref: options::BrokenLinkReference| {
561+
Some(ResolvedReference {
562+
url: link_ref.normalized.to_string(),
563+
title: link_ref.original.to_string(),
564+
})
565+
}));
566+
opts.render.width = 45;
567+
568+
markdown_to_commonmark("\0\0\0\0\0\0[\\`\r\n;][ww=\\-", &opts);
569+
}

0 commit comments

Comments
 (0)