diff options
Diffstat (limited to '')
-rw-r--r-- | testing/tests/macro.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/tests/macro.rs b/testing/tests/macro.rs index 6b0eca5..7e910a9 100644 --- a/testing/tests/macro.rs +++ b/testing/tests/macro.rs @@ -13,6 +13,16 @@ fn test_macro() { } #[derive(Template)] +#[template(path = "macro-no-args.html")] +struct MacroNoArgsTemplate; + +#[test] +fn test_macro_no_args() { + let t = MacroNoArgsTemplate; + assert_eq!(t.render().unwrap(), "11the best thing111we've ever done11"); +} + +#[derive(Template)] #[template(path = "import.html")] struct ImportTemplate<'a> { s: &'a str, |