Skip to content

Commit

Permalink
Add extra test opening volumes.
Browse files Browse the repository at this point in the history
  • Loading branch information
thejpster committed Oct 11, 2024
1 parent 959993b commit 46152f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/volume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ fn open_all_volumes() {
Err(embedded_sdmmc::Error::FormatError(_e))
));

// This isn't a valid volume
assert!(matches!(
volume_mgr.open_raw_volume(embedded_sdmmc::VolumeIdx(3)),
Err(embedded_sdmmc::Error::FormatError(_e))
));

// This isn't a valid volume
assert!(matches!(
volume_mgr.open_raw_volume(embedded_sdmmc::VolumeIdx(9)),
Expand Down

0 comments on commit 46152f8

Please sign in to comment.