add test for invalid_hashed_storage

This commit is contained in:
Simon Gardling 2022-05-17 09:04:04 -04:00
parent f6ca98a1f2
commit 149adfd614

View File

@ -108,3 +108,9 @@ fn hashed_storage() {
let read = hashed_storage_read(storage);
assert_eq!(read.map(|(a, b)| (a.to_vec(), b)), Some((commit, data)));
}
#[test]
fn invalid_hashed_storage() {
use ytbn_graphing_software::hashed_storage_read;
assert_eq!(hashed_storage_read(String::from("aaaa")), None);
}