Skip to content

Commit 5655966

Browse files
committed
Ensure examples/missing is missing
1 parent 7275dfb commit 5655966

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/allow_missing.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
use std::{path::PathBuf, str::FromStr};
2+
13
use rust_embed::Embed;
24

35
#[derive(Embed)]
@@ -7,5 +9,7 @@ struct Asset;
79

810
#[test]
911
fn missing_is_empty() {
12+
let path = PathBuf::from_str("./examples/missing").unwrap();
13+
assert!(!path.exists());
1014
assert_eq!(Asset::iter().count(), 0);
1115
}

0 commit comments

Comments
 (0)