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:
parent
f0cd89a949
commit
04b5b09207
|
@ -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" });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue