#[cfg(test)]
mod tests {
use web_macro::{division, heading1};
#[test]
fn test_base() {
assert_eq!("
test
", division!("test"))
}
#[test]
fn test_multiple_elements() {
assert_eq!(
"\n
one
\ntwo
\n",
division!(heading1!("one"), heading1!("two"))
)
}
#[test]
fn test_multiple_elements_with_options() {
assert_eq!(
"\n
one
\ntwo
\n",
division!(
heading1!("one"),
heading1!("two", class = "tiny"),
id = "division_id"
)
)
}
}