block: add parse_table_empty

This commit is contained in:
Noah Hellman 2023-05-01 20:34:27 +02:00
parent ee9ea2e023
commit d9804d963c

View file

@ -2248,6 +2248,20 @@ mod test {
);
}
#[test]
fn parse_table_empty() {
test_parse!(
"||",
(Enter(Container(Table)), ""),
(Enter(Container(TableRow { head: false })), "|"),
(Enter(Leaf(TableCell(Alignment::Unspecified))), "|"),
(Inline, ""),
(Exit(Leaf(TableCell(Alignment::Unspecified))), "|"),
(Exit(Container(TableRow { head: false })), "|"),
(Exit(Container(Table)), ""),
);
}
#[test]
fn parse_table_escaped() {
test_parse!(