Ignore include-nest tests on Windows

On Windows the main separator for paths is '\\', and include! macro
should be regarded as platform-specific path. In the future sailfish
add the corresponding tests for Windows.
This commit is contained in:
Kogia-sima 2020-06-07 05:36:32 +09:00
parent f0cd89a949
commit 04b5b09207
1 changed files with 16 additions and 11 deletions

View File

@ -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" });
}
}