aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fuzz.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-29 14:03:59 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-11-25 11:21:15 +0100
commit4f776347163a514abadc7ded95e66a459be03bc9 (patch)
treea518ece6a62c939b3c468f2947e82e608300b664 /tests/fuzz.rs
parentd5ae7bb13fdb5e855c678ced9b66d26674e08136 (diff)
downloadmarkdown-rs-4f776347163a514abadc7ded95e66a459be03bc9.tar.gz
markdown-rs-4f776347163a514abadc7ded95e66a459be03bc9.tar.bz2
markdown-rs-4f776347163a514abadc7ded95e66a459be03bc9.zip
Fix GFM task list checkboxes followed by eol
Closes GH-24.
Diffstat (limited to '')
-rw-r--r--tests/fuzz.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/fuzz.rs b/tests/fuzz.rs
index d1a87b7..297e6a9 100644
--- a/tests/fuzz.rs
+++ b/tests/fuzz.rs
@@ -109,5 +109,13 @@ fn fuzz() -> Result<(), String> {
"10: attention in different links (GH-21)"
);
+ assert!(
+ matches!(
+ to_mdast("* [ ]\na", &Default::default()),
+ Ok(mdast::Node::Root(_))
+ ),
+ "11: gfm task list items followed by eols (GH-24)"
+ );
+
Ok(())
}