Add nimbus-specific test

This commit is contained in:
Paul Hauner 2019-09-09 12:22:09 -04:00
parent 14e8c6c87c
commit d9a4dbd912
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -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)]