use rdxl::xhtml; #[test] fn tag1() { assert_eq!( xhtml!("
"), "
".to_string() ); } #[test] fn tag2() { assert_eq!( xhtml!(
dave
david
), "
dave
david
".to_string() ); } #[test] fn tag3() { assert_eq!( xhtml!(this that

that this

), "this that

that this

".to_string() ); } #[test] fn tag4() { assert_eq!( xhtml!(), "".to_string() ); } #[test] fn tag5() { assert_eq!( xhtml!(".to_string() ); } /* panics during compilation, not test; so I don't know how to unit test this #[test] #[should_panic] fn tag6() { assert_eq!( xhtml!(), "".to_string() ); } */