use std::collections::HashMap; use wal_core::virtual_dom::{VElement, VNode}; use wal_rsx::rsx; fn main() { let rsx = rsx! {
}; assert_eq!(rsx, get_velement("div")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("span")); let rsx = rsx! {
}; assert_eq!(rsx, get_velement("div")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("span")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("area")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("base")); let rsx = rsx! {
}; assert_eq!(rsx, get_velement("br")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("col")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("embed")); let rsx = rsx! {
}; assert_eq!(rsx, get_velement("hr")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("img")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("input")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("link")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("meta")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("param")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("source")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("track")); let rsx = rsx! { }; assert_eq!(rsx, get_velement("wbr")); } fn get_velement(tag: &str) -> VNode { VNode::Element(VElement::new( tag.to_string(), HashMap::new(), Vec::new(), None, Vec::new(), )) }