Add test to delete non-existent entries

This commit is contained in:
Matthias Beyer 2016-09-19 11:03:38 +02:00
parent 52b2a4589d
commit 8345ff8248

View file

@ -2284,5 +2284,17 @@ mod store_tests {
}
}
}
#[test]
fn test_delete_none() {
let store = get_store();
for n in 1..100 {
match store.delete(PathBuf::from(format!("test-{}", n))) {
Err(_) => assert!(true),
_ => assert!(false),
}
}
}
}