use vimwiki::{elements::BlockElement, LE};
#[inline]
pub fn blank_line() -> LE<BlockElement> {
LE::from(BlockElement::BlankLine)
}
pub fn compare_page_elements(
actual: &[LE<BlockElement>],
expected: &[LE<BlockElement>],
) {
for (i, (ac, ec)) in actual.iter().zip(expected.iter()).enumerate() {
assert_eq!(ac, ec, "Elements at index {} are not equal!", i);
assert_eq!(
ac.region, ec.region,
"Element regions at index {} are not equal!",
i
);
}
assert_eq!(
actual.len(),
expected.len(),
"Varying number of top-level page elements!"
);
}