()
| 1012 | |
| 1013 | #[test] |
| 1014 | fn test_storage_unmount_ok() { |
| 1015 | let mut storage = Storage::default(); |
| 1016 | storage.mount("other", "memory://").unwrap(); |
| 1017 | assert_eq!("MEMORY:/", storage.cwd()); |
| 1018 | assert_eq!(["MEMORY", "OTHER"], drive_names(&storage).as_slice()); |
| 1019 | |
| 1020 | storage.unmount("other").unwrap(); |
| 1021 | assert_eq!("MEMORY:/", storage.cwd()); |
| 1022 | assert_eq!(["MEMORY"], drive_names(&storage).as_slice()); |
| 1023 | } |
| 1024 | |
| 1025 | #[test] |
| 1026 | fn test_storage_unmount_not_mounted_error() { |