use herb::Node;
#[test]
fn error_count_is_exposed_and_short_circuits() {
let clean = herb::parse("
", "
hello
", "<% if condition without end %>", "<% if x %>"] {
let result = herb::parse(source).unwrap();
assert_eq!(
result.error_count,
Some(result.value.recursive_errors().len() as u32),
"count mismatch for {source:?}"
);
}
}