Add test to get non-existent entries

This commit is contained in:
Matthias Beyer 2016-09-19 11:01:56 +02:00
parent 0cdeeb4c55
commit 52b2a4589d

View file

@ -2273,5 +2273,16 @@ mod store_tests {
}
}
#[test]
fn test_get_none() {
let store = get_store();
for n in 1..100 {
match store.get(PathBuf::from(format!("test-{}", n))) {
Ok(None) => assert!(true),
_ => assert!(false),
}
}
}
}