mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-25 13:07:18 +00:00
Add nimbus-specific test
This commit is contained in:
parent
14e8c6c87c
commit
d9a4dbd912
@ -729,6 +729,13 @@ mod bitvector {
|
|||||||
assert_eq!(bitfield.ssz_bytes_len(), bytes.len(), "i = {}", i);
|
assert_eq!(bitfield.ssz_bytes_len(), bytes.len(), "i = {}", i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn excess_bits_nimbus() {
|
||||||
|
let bad = vec![0b0001_1111];
|
||||||
|
|
||||||
|
assert!(BitVector4::from_ssz_bytes(&bad).is_err());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
Loading…
Reference in New Issue
Block a user