use mxml_dep::*; #[test] fn mixin1() { let xml = "

a

b

c

"; let m = FindMatchEditElement { fme: vec![( FindElement{find:vec![]}, MatchElement{when:vec![Match::HasTag("p".to_string())]}, EditElement{edit:vec![Edit::AddAttribute("a".to_string(),"".to_string())]} ),( FindElement{find:vec![]}, MatchElement{when:vec![Match::HasTag("p".to_string())]}, EditElement{edit:vec![Edit::AddAttribute("b".to_string(),"".to_string())]} )] }; let xml = m.mixin(xml); assert_eq!( xml, r#"

a

b

c

"# ); }