mirror of
https://github.com/agersant/polaris
synced 2024-12-02 17:49:10 +00:00
Fixed broken test on Linux
This commit is contained in:
parent
87c4763cd1
commit
3b2a6f0a3a
1 changed files with 5 additions and 1 deletions
|
@ -202,7 +202,11 @@ fn clean_path_string(path_string: &str) -> path::PathBuf {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_clean_path_string() {
|
fn test_clean_path_string() {
|
||||||
let mut correct_path = path::PathBuf::new();
|
let mut correct_path = path::PathBuf::new();
|
||||||
correct_path.push("C:\\");
|
if cfg!(target_os = "windows") {
|
||||||
|
correct_path.push("C:\\");
|
||||||
|
} else {
|
||||||
|
correct_path.push("/usr");
|
||||||
|
}
|
||||||
correct_path.push("some");
|
correct_path.push("some");
|
||||||
correct_path.push("path");
|
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"#));
|
||||||
|
|
Loading…
Reference in a new issue