use crate::assert_html_eq; #[test] fn named_block() { assert_html_eq!({a {}} => ""); assert_html_eq!({ a { "Hello" } } => "Hello"); assert_html_eq!({ a { "Hello" b { "World" } } } => "HelloWorld"); } #[test] fn anon_block() { assert_html_eq!({{ "foo" "bar" }} => "foobar"); assert_html_eq!({ "foo" { "bar" } "baz" } => "foobarbaz"); } #[test] fn semicolons() { assert_html_eq!({ "one"; "two"; "three"; ;;;;;;;;;;;;;;;;;;;;;;;; "four"; } => "onetwothreefour"); } #[test] fn self_closing_tag() { assert_html_eq!({ link; } => ""); assert_html_eq!({ "bob" br; "jerry" } => "bob
jerry"); } #[test] fn self_closing_tag_repeated() { assert_html_eq!({ link; link; } => ""); } #[test] fn idents_with_hyphens_in_names() { // assert!(false); assert_html_eq!({ a-b { "Foo" } } => "Foo"); }