mirror of
https://github.com/nushell/nushell.git
synced 2024-11-28 19:33:47 +01:00
Test case platform result verify, revoke Cargo.lock Cargo.toml
This commit is contained in:
parent
8ce83719d5
commit
4832bc733e
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -4,7 +4,7 @@ version = 3
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "addr2line"
|
name = "addr2line"
|
||||||
version = "0.24.2"
|
version = "0.22.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"
|
checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
@ -129,7 +129,7 @@ proc-macro-error = { version = "1.0", default-features = false }
|
|||||||
proc-macro2 = "1.0"
|
proc-macro2 = "1.0"
|
||||||
procfs = "0.16.0"
|
procfs = "0.16.0"
|
||||||
pwd = "1.3"
|
pwd = "1.3"
|
||||||
quick-xml = "0.37.0"
|
quick-xml = "0.32.0"
|
||||||
quickcheck = "1.0"
|
quickcheck = "1.0"
|
||||||
quickcheck_macros = "1.0"
|
quickcheck_macros = "1.0"
|
||||||
quote = "1.0"
|
quote = "1.0"
|
||||||
|
@ -341,7 +341,10 @@ pub mod pwd_per_drive_singleton {
|
|||||||
|
|
||||||
// Expand a relative path
|
// Expand a relative path
|
||||||
let expanded = expand_pwd_per_drive(Path::new("C:test"));
|
let expanded = expand_pwd_per_drive(Path::new("C:test"));
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
assert_eq!(expanded, Some(PathBuf::from("C:\\Users\\Home\\test")));
|
assert_eq!(expanded, Some(PathBuf::from("C:\\Users\\Home\\test")));
|
||||||
|
#[cfg(not(target_os = "windows"))]
|
||||||
|
assert_eq!(expanded, None);
|
||||||
|
|
||||||
// Will NOT expand an absolute path
|
// Will NOT expand an absolute path
|
||||||
let expanded = expand_pwd_per_drive(Path::new("C:\\absolute\\path"));
|
let expanded = expand_pwd_per_drive(Path::new("C:\\absolute\\path"));
|
||||||
@ -353,6 +356,9 @@ pub mod pwd_per_drive_singleton {
|
|||||||
|
|
||||||
// Expand with no PWD set for the drive
|
// Expand with no PWD set for the drive
|
||||||
let expanded = expand_pwd_per_drive(Path::new("D:test"));
|
let expanded = expand_pwd_per_drive(Path::new("D:test"));
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
assert_eq!(expanded, Some(PathBuf::from("D:\\test")));
|
assert_eq!(expanded, Some(PathBuf::from("D:\\test")));
|
||||||
|
#[cfg(not(target_os = "windows"))]
|
||||||
|
assert_eq!(expanded, None);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user