mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 19:11:20 +02:00
cargo next run --target x86_64-pc-windows-gnu
This commit is contained in:
@ -154,7 +154,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
let map = drive_pwd_map.lock().unwrap();
|
let mut map = drive_pwd_map.lock().unwrap();
|
||||||
|
|
||||||
// Get PWD for drive C
|
// Get PWD for drive C
|
||||||
assert_eq!(map.get_pwd('C'), Some("C:\\Users\\Example".to_string()));
|
assert_eq!(map.get_pwd('C'), Some("C:\\Users\\Example".to_string()));
|
||||||
@ -215,7 +215,7 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_get_pwd_invalid_drive() {
|
fn test_get_pwd_invalid_drive() {
|
||||||
let drive_map = DrivePWDmap::new();
|
let mut drive_map = DrivePWDmap::new();
|
||||||
|
|
||||||
// Get PWD for a drive not set (e.g., Z)
|
// Get PWD for a drive not set (e.g., Z)
|
||||||
assert_eq!(drive_map.get_pwd('Z'), Some("Z:\\".to_string()));
|
assert_eq!(drive_map.get_pwd('Z'), Some("Z:\\".to_string()));
|
||||||
|
Reference in New Issue
Block a user