block: extend parse_table_align

This commit is contained in:
Noah Hellman 2023-05-03 23:44:48 +02:00
parent 4f863f91d5
commit c21138d5b9

View file

@ -2342,6 +2342,19 @@ mod test {
(Exit(Container(TableRow { head: false })), "|"),
(Exit(Container(Table)), "")
);
test_parse!(
concat!(
"||\n", //
"|-:|\n", //
),
(Enter(Container(Table)), ""),
(Enter(Container(TableRow { head: true })), "|"),
(Enter(Leaf(TableCell(Alignment::Right))), "|"),
(Inline, ""),
(Exit(Leaf(TableCell(Alignment::Right))), "|"),
(Exit(Container(TableRow { head: true })), "|"),
(Exit(Container(Table)), ""),
);
}
#[test]