mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 19:07:42 +02:00
Update doctest to handle test runner on the same drive with the drive in test
This commit is contained in:
@ -89,8 +89,11 @@ pub mod _impl {
|
||||
assert_eq!(expanded, None);
|
||||
|
||||
// Expand with no PWD set for the drive
|
||||
let expanded = expand_pwd(Path::new("G:test"));
|
||||
assert_eq!(expanded, Some(PathBuf::from(r"G:\test")));
|
||||
let expanded = expand_pwd(Path::new("D:test"));
|
||||
if let Some(sys_abs) = get_full_path_name_w("D:") {
|
||||
assert_eq!(expanded, Some(PathBuf::from(format!("{}test", Drive2PWD::ensure_trailing_separator(&sys_abs)))));
|
||||
}
|
||||
assert_eq!(expanded, Some(PathBuf::from(r"D:\test")));
|
||||
}
|
||||
|
||||
struct Drive2PWD {
|
||||
|
Reference in New Issue
Block a user