add test for invalid_hashed_storage
This commit is contained in:
parent
f6ca98a1f2
commit
149adfd614
@ -108,3 +108,9 @@ fn hashed_storage() {
|
|||||||
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)));
|
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);
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user