diff --git a/tests/fuzz.rs b/tests/fuzz.rs index 4778cbb8..d76a2700 100644 --- a/tests/fuzz.rs +++ b/tests/fuzz.rs @@ -129,5 +129,13 @@ fn fuzz() -> Result<(), String> { "12: mdx: handle invalid mdx without panic (GH-26)" ); + assert!( + matches!( + to_mdast("=\n=\n=\na\n=", &Default::default()), + Ok(mdast::Node::Root(_)) + ), + "yy: setext headings next to each other (GH-31)" + ); + Ok(()) }