Files
web-macro/tests/tests_paragraphs.rs

14 lines
269 B
Rust

#[cfg(test)]
mod tests {
use web_macro::paragraph;
#[test]
fn test_base() {
assert_eq!("<p>test</p>", paragraph!("test"))
}
#[test]
fn test_params() {
assert_eq!("<p id=\"oui\">test</p>", paragraph!("test", id = "oui"))
}
}