mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-24 04:31:37 +03:00
Support windows separator
This commit is contained in:
parent
836ad872a7
commit
eef4568e3f
@ -132,13 +132,14 @@ mod tests {
|
||||
|
||||
let variables = HashMap::new();
|
||||
|
||||
let separator = if cfg!(windows) { "\\" } else { "/" };
|
||||
let error = eval_bytes(bytes, &variables, "current_dir".to_string())
|
||||
.err()
|
||||
.unwrap();
|
||||
assert_eq!(
|
||||
error.inner,
|
||||
RunnerError::FileReadAccess {
|
||||
value: String::from("current_dir/data.bin")
|
||||
value: String::from(format!("current_dir{}data.bin", separator))
|
||||
}
|
||||
);
|
||||
assert_eq!(error.source_info, SourceInfo::init(1, 7, 1, 15));
|
||||
|
Loading…
Reference in New Issue
Block a user