diff options
Diffstat (limited to 'testing/tests/macro.rs')
-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 7f7e4dc..e449dd5 100644 --- a/testing/tests/macro.rs +++ b/testing/tests/macro.rs @@ -63,3 +63,13 @@ fn test_nested_macro_with_args() { let t = NestedMacroArgsTemplate {}; assert_eq!(t.render().unwrap(), "first second"); } + +#[derive(Template)] +#[template(path = "macro-import-str-cmp.html")] +struct StrCmpTemplate; + +#[test] +fn str_cmp() { + let t = StrCmpTemplate; + assert_eq!(t.render().unwrap(), "AfooBotherCneitherD"); +} |