block: expand parse_attr test

This commit is contained in:
Noah Hellman 2023-05-11 21:42:47 +02:00
parent e84385c2db
commit edd89f2b20

View file

@ -1694,6 +1694,22 @@ mod test {
(Inline, "para"), (Inline, "para"),
(Exit(Leaf(Paragraph)), ""), (Exit(Leaf(Paragraph)), ""),
); );
test_parse!(
concat!(
"{.a}\n", //
"\n", //
"{.b}\n", //
"\n", //
"para\n", //
),
(Atom(Attributes), "{.a}\n"),
(Atom(Blankline), "\n"),
(Atom(Attributes), "{.b}\n"),
(Atom(Blankline), "\n"),
(Enter(Leaf(Paragraph)), ""),
(Inline, "para"),
(Exit(Leaf(Paragraph)), ""),
);
} }
#[test] #[test]