From 46152f84b8f1077fb0e71a67f34842612b79a148 Mon Sep 17 00:00:00 2001 From: Jonathan 'theJPster' Pallant Date: Fri, 11 Oct 2024 14:33:10 +0200 Subject: [PATCH] Add extra test opening volumes. --- tests/volume.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/volume.rs b/tests/volume.rs index 633a8d25..6ef05dff 100644 --- a/tests/volume.rs +++ b/tests/volume.rs @@ -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)),