mirror of
https://github.com/sagiegurari/duckscript
synced 2024-09-15 22:19:51 +00:00
fix windows test
This commit is contained in:
parent
ba35a6ad27
commit
6568805ab1
|
@ -14,9 +14,15 @@ fn run_no_path_provided() {
|
|||
|
||||
#[test]
|
||||
fn run_path_provided() {
|
||||
let output = if cfg!(windows) {
|
||||
"\\target\\_duckscript".to_string()
|
||||
} else {
|
||||
"/target/_duckscript".to_string()
|
||||
};
|
||||
|
||||
test::run_script_and_validate(
|
||||
vec![create("")],
|
||||
"out = canonicalize ./target/_duckscript",
|
||||
CommandValidation::Contains("out".to_string(), "/target/_duckscript".to_string()),
|
||||
CommandValidation::Contains("out".to_string(), output),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue