use std::collections::HashMap; use wal_core::virtual_dom::{VElement, VList, VNode}; use wal_rsx::rsx; fn main() { let rsx = rsx! {
}; assert_eq!( rsx, VNode::List(VList::new( vec![ get_velement("div"), get_velement("span"), get_velement("input"), ], None )) ) } fn get_velement(tag: &str) -> VNode { VNode::Element(VElement::new( tag.to_string(), HashMap::new(), Vec::new(), None, Vec::new(), )) }