Merge mjkeating changes into local branch

This commit is contained in:
Kirk Baird
2019-01-24 14:23:51 +11:00
5 changed files with 227 additions and 0 deletions

View File

@@ -79,6 +79,14 @@ mod tests {
assert_eq!(ssz.drain(), vec![0; 32]);
}
#[test]
fn test_ssz_encode_address() {
let h = Address::zero();
let mut ssz = SszStream::new();
ssz.append(&h);
assert_eq!(ssz.drain(), vec![0; 20]);
}
#[test]
fn test_ssz_encode_u8() {
let x: u8 = 0;