From f7d7507af61a0f253fdb50cecd20885b72d16b13 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 12 Sep 2022 16:46:33 +0200 Subject: Fix blank lines in labels --- tests/fuzz.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/fuzz.rs (limited to 'tests') diff --git a/tests/fuzz.rs b/tests/fuzz.rs new file mode 100644 index 0000000..3cc1066 --- /dev/null +++ b/tests/fuzz.rs @@ -0,0 +1,14 @@ +extern crate micromark; +use micromark::micromark; +use pretty_assertions::assert_eq; + +#[test] +fn fuzz() -> Result<(), String> { + assert_eq!( + micromark("[\n~\na\n-\n\n"), + "

[\n~\na

\n\n", + "1" + ); + + Ok(()) +} -- cgit