use html_query_parser::{parse, Editable};
#[test]
fn paired_tag() {
let a = parse("
");
let b = parse("
Hello, world!
");
println!("{:#?}", a);
println!("{:#?}", b);
}
#[test]
fn void_tag() {
let a = parse("");
let b = parse("");
println!("{:#?}", a);
println!("{:#?}", b);
}
#[test]
fn self_closing_tag() {
let a = parse("");
println!("{:#?}", a);
}
#[test]
fn comment_tag() {
let a = parse("");
let b = parse("");
println!("{:#?}", a);
println!("{:#?}", b);
}
#[test]
fn attributes() {
let a = parse("");
let b = parse("");
println!("{:#?}", a);
println!("{:#?}", b);
}
#[test]
fn matched() {
let a = parse(
r#"
"#,
).trim();
let b = parse(
r#"
"#,
).trim();
let c = parse(
r#"
"#,
).trim();
println!("{:#?}", a);
println!("{:#?}", b);
println!("{:#?}", c);
}
#[test]
fn complex() {
let a = parse(
r#"
DocumentExample