diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/util.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs index 37a2028..4a96ee9 100644 --- a/src/util.rs +++ b/src/util.rs @@ -3,3 +3,10 @@ use std::fs::remove_file; pub fn clean() { let _ignored = remove_file("temp"); } + +#[test] +fn test_clean() { + std::fs::File::create("temp").unwrap(); + clean(); + assert!(!std::path::Path::new("temp").exists()); +} |
