aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-12 16:46:33 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-12 16:46:33 +0200
commitf7d7507af61a0f253fdb50cecd20885b72d16b13 (patch)
tree60be046efcb89811305f2f8bc3dffc502dacb2a9 /tests
parent2011d2ea4d6ec9d1bd7409c22e4258aceaaa3afe (diff)
downloadmarkdown-rs-f7d7507af61a0f253fdb50cecd20885b72d16b13.tar.gz
markdown-rs-f7d7507af61a0f253fdb50cecd20885b72d16b13.tar.bz2
markdown-rs-f7d7507af61a0f253fdb50cecd20885b72d16b13.zip
Fix blank lines in labels
Diffstat (limited to 'tests')
-rw-r--r--tests/fuzz.rs14
1 files changed, 14 insertions, 0 deletions
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"),
+ "<p>[\n~\na</p>\n<ul>\n<li></li>\n</ul>\n",
+ "1"
+ );
+
+ Ok(())
+}