Move include_rust test into unix module
This test fails on Windows because arguments in include! macro is regarded as native path. This follows the std::include! macro behaviour.
This commit is contained in:
parent
d7a2ff8008
commit
ab4b0c99e6
|
@ -184,17 +184,6 @@ fn test_rust_macro() {
|
|||
assert_render("rust_macro", RustMacro { value: Some(10) });
|
||||
}
|
||||
|
||||
#[derive(TemplateOnce)]
|
||||
#[template(path = "include_rust.stpl")]
|
||||
struct IncludeRust {
|
||||
value: usize,
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_include_rust() {
|
||||
assert_render("include_rust", IncludeRust { value: 58 });
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
mod unix {
|
||||
use super::*;
|
||||
|
@ -209,4 +198,15 @@ mod unix {
|
|||
fn test_include_nest() {
|
||||
assert_render("include-nest", IncludeNest { s: "foo" });
|
||||
}
|
||||
|
||||
#[derive(TemplateOnce)]
|
||||
#[template(path = "include_rust.stpl")]
|
||||
struct IncludeRust {
|
||||
value: usize,
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_include_rust() {
|
||||
assert_render("include_rust", IncludeRust { value: 58 });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue