aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/macro.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testing/tests/macro.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/tests/macro.rs b/testing/tests/macro.rs
index 459b1e2..7f7e4dc 100644
--- a/testing/tests/macro.rs
+++ b/testing/tests/macro.rs
@@ -53,3 +53,13 @@ fn test_short_circuit() {
let t = ShortCircuitTemplate {};
assert_eq!(t.render().unwrap(), "truetruetruefalsetruetrue");
}
+
+#[derive(Template)]
+#[template(path = "nested-macro-args.html")]
+struct NestedMacroArgsTemplate {}
+
+#[test]
+fn test_nested_macro_with_args() {
+ let t = NestedMacroArgsTemplate {};
+ assert_eq!(t.render().unwrap(), "first second");
+}