From 7853d682bfc2a4dce5e37b30c52c10e0d8cc704b Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Fri, 25 Nov 2022 09:56:08 -0700 Subject: [PATCH] test: two setext headings next to each other --- tests/fuzz.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/fuzz.rs b/tests/fuzz.rs index 297e6a96..bf027fb1 100644 --- a/tests/fuzz.rs +++ b/tests/fuzz.rs @@ -117,5 +117,13 @@ fn fuzz() -> Result<(), String> { "11: gfm task list items followed by eols (GH-24)" ); + assert!( + matches!( + to_mdast("=\n=\n=\na\n=", &Default::default()), + Ok(mdast::Node::Root(_)) + ), + "yy: setext headings next to each other (GH-31)" + ); + Ok(()) }