logic improvements

This commit is contained in:
Simon Gardling
2022-05-19 11:20:37 -04:00
parent dae135cd38
commit c99e367512
4 changed files with 33 additions and 18 deletions

View File

@@ -105,14 +105,14 @@ fn hashed_storage() {
data.as_slice(),
);
let read = hashed_storage_read(&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("aaaa"), None);
assert_eq!(hashed_storage_read("aaaa".to_owned()), None);
}
#[test]