From 23e4a91e6a0d3074bb13f29e466bee57cd4bc7cc 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 --- src/util/unicode.rs | 2 +- tests/fuzz.rs | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/util/unicode.rs b/src/util/unicode.rs index a8da9570..15004c7a 100644 --- a/src/util/unicode.rs +++ b/src/util/unicode.rs @@ -2,7 +2,7 @@ /// List of characters that are considered punctuation. /// -/// > 👉 **Important**: this module is generated by `generate/src/main.rs`. +/// > 👉 **Important**: this module is generated by `build.rs`. /// > It is generate from the latest Unicode data. /// /// Rust does not contain an `is_punctuation` method on `char`, while it does 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(()) }