block: add test parse_description_list_empty

This commit is contained in:
Noah Hellman 2023-05-02 23:11:31 +02:00
parent d9804d963c
commit 4f863f91d5

View file

@ -2213,6 +2213,38 @@ mod test {
);
}
#[test]
fn parse_description_list_empty() {
test_parse!(
":\n",
(
Enter(Container(List {
kind: ListKind {
ty: Description,
tight: true,
},
marker: ":",
})),
":"
),
(Enter(Leaf(DescriptionTerm)), ""),
(Exit(Leaf(DescriptionTerm)), ""),
(Enter(Container(ListItem(ListItemKind::Description))), ":"),
(Atom(Blankline), "\n"),
(Exit(Container(ListItem(ListItemKind::Description))), ":"),
(
Exit(Container(List {
kind: ListKind {
ty: Description,
tight: true,
},
marker: ":",
})),
":"
),
);
}
#[test]
fn parse_table() {
test_parse!(