mirror of
https://github.com/agersant/polaris
synced 2024-11-10 10:14:12 +00:00
Fix broken test on Linux
This commit is contained in:
parent
3b2a6f0a3a
commit
ef3d55cdbc
1 changed files with 10 additions and 3 deletions
|
@ -209,7 +209,14 @@ fn test_clean_path_string() {
|
|||
}
|
||||
correct_path.push("some");
|
||||
correct_path.push("path");
|
||||
assert_eq!(correct_path, clean_path_string(r#"C:/some/path"#));
|
||||
assert_eq!(correct_path, clean_path_string(r#"C:\some\path"#));
|
||||
assert_eq!(correct_path, clean_path_string(r#"C:\some\path\"#));
|
||||
if cfg!(target_os = "windows") {
|
||||
assert_eq!(correct_path, clean_path_string(r#"C:/some/path"#));
|
||||
assert_eq!(correct_path, clean_path_string(r#"C:\some\path"#));
|
||||
assert_eq!(correct_path, clean_path_string(r#"C:\some\path\"#));
|
||||
} else {
|
||||
assert_eq!(correct_path, clean_path_string(r#"/usr/some/path"#));
|
||||
assert_eq!(correct_path, clean_path_string(r#"/usr\some\path"#));
|
||||
assert_eq!(correct_path, clean_path_string(r#"/usr\some\path\"#));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue