add tests

This commit is contained in:
lyn committed 2019-03-20 21:05:45 +01:00
1 parent 11875aed6e
commit f43cb124f6
7 files changed
+90

No files matched your search

+7
View File
@@ -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());
}