Skip to content

Commit 46152f8

Browse files
committed
Add extra test opening volumes.
1 parent 959993b commit 46152f8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/volume.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ fn open_all_volumes() {
5858
Err(embedded_sdmmc::Error::FormatError(_e))
5959
));
6060

61+
// This isn't a valid volume
62+
assert!(matches!(
63+
volume_mgr.open_raw_volume(embedded_sdmmc::VolumeIdx(3)),
64+
Err(embedded_sdmmc::Error::FormatError(_e))
65+
));
66+
6167
// This isn't a valid volume
6268
assert!(matches!(
6369
volume_mgr.open_raw_volume(embedded_sdmmc::VolumeIdx(9)),

0 commit comments

Comments
 (0)