diff --git a/integration-tests/tests/basic.rs b/integration-tests/tests/basic.rs index 2716e84..6f7471f 100644 --- a/integration-tests/tests/basic.rs +++ b/integration-tests/tests/basic.rs @@ -91,17 +91,6 @@ fn test_include() { assert_render("include", Include { strs: &["foo", "bar"] }); } -#[derive(TemplateOnce)] -#[template(path = "include-nest.stpl")] -struct IncludeNest<'a> { - s: &'a str, -} - -#[test] -fn test_include_nest() { - assert_render("include-nest", IncludeNest { s: "foo" }); -} - #[derive(TemplateOnce)] #[template(path = "big-table.stpl")] struct BigTable { @@ -152,3 +141,19 @@ fn test_teams() { }; assert_render("teams", teams); } + +#[cfg(unix)] +mod unix { + use super::*; + + #[derive(TemplateOnce)] + #[template(path = "include-nest.stpl")] + struct IncludeNest<'a> { + s: &'a str, + } + + #[test] + fn test_include_nest() { + assert_render("include-nest", IncludeNest { s: "foo" }); + } +}