#[cfg(test)] pub mod tests { use bobo_html_parser::{ core::{parse_html, parse_input_by_rule}, grammar::Rule, }; #[test] pub fn is_valid_html() -> anyhow::Result<()> { let html = "
My first paragraph.
"; let result = parse_html(&html); assert!(result.is_ok()); Ok(()) } #[test] pub fn is_invalid_html() -> anyhow::Result<()> { let html = "My first paragraph.