block: add test parse_description_list_empty
This commit is contained in:
parent
d9804d963c
commit
4f863f91d5
1 changed files with 32 additions and 0 deletions
32
src/block.rs
32
src/block.rs
|
@ -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!(
|
||||
|
|
Loading…
Reference in a new issue