mirror of
https://github.com/logos-blockchain/logos-execution-zone.git
synced 2026-06-29 10:29:32 +00:00
added test for helper function
This commit is contained in:
parent
8339690964
commit
acd4beb50f
@ -340,6 +340,18 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn split_hash_splits_into_first_and_last_32_bytes() {
|
||||
let mut hash_value = [0_u8; 64];
|
||||
hash_value[..32].fill(0xAA);
|
||||
hash_value[32..].fill(0xBB);
|
||||
|
||||
let (first, last) = split_hash(&hash_value);
|
||||
|
||||
assert_eq!(first, [0xAA; 32]);
|
||||
assert_eq!(last, [0xBB; 32]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn simple_key_tree() {
|
||||
let seed_holder = seed_holder_for_tests();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user