From 4f2176a3ad2d174c40617c9f3af13b6bd8270b29 Mon Sep 17 00:00:00 2001 From: bott Date: Fri, 7 Sep 2018 19:28:21 +0200 Subject: Fix deep nested imports in macro calls --- testing/tests/macro.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'testing/tests') diff --git a/testing/tests/macro.rs b/testing/tests/macro.rs index 4e43d7c..77e0e59 100644 --- a/testing/tests/macro.rs +++ b/testing/tests/macro.rs @@ -36,3 +36,13 @@ fn test_nested() { let t = NestedTemplate; assert_eq!(t.render().unwrap(), "foo"); } + +#[derive(Template)] +#[template(path = "deep-import-parent.html")] +struct DeepImportTemplate; + +#[test] +fn test_deep_import() { + let t = DeepImportTemplate; + assert_eq!(t.render().unwrap(), "foo"); +} -- cgit