use rdxl::xhtml; #[test] fn misc1(){ let mut x = 5; assert_eq!(xhtml!(
{{ x }}, {{ x = 3; }} {{ x }}, {{ x = 7; }} {{ x }}, {{ let mut y = 2; }} {{ y }}, {{ y = 1; }} {{ y }}
), "
5, 3, 7, 2, 1
".to_string()); } #[test] fn misc2() { assert_eq!( xhtml!(
6
), "
6
".to_string() ); }