use rdxl::xhtml; struct MyVal {} impl MyVal { fn to_style(&self) -> String { "My:Val;".to_string() } } #[test] fn formatter1(){ assert_eq!( xhtml!(
dave
), "
dave
".to_string() ); } #[test] fn formatter2(){ assert_eq!( xhtml!(
dave
), "
dave
".to_string() ); } #[test] fn formatter3(){ assert_eq!( xhtml!(
dave
), r#"
dave
"#.to_string() ); }