test passing in validator_record.rs

This commit is contained in:
Grant Wuerker 2018-12-09 22:22:08 -06:00
parent c63ef6d032
commit 1d48aa280b

View File

@ -51,12 +51,12 @@ mod tests {
#[test]
fn test_validator_record_zero_rand_keypair() {
let (v, _kp) = ValidatorRecord::zero_with_thread_rand_keypair();
assert_eq!(v.withdrawal_shard, 0);
assert!(v.withdrawal_address.is_zero());
assert!(v.withdrawal_credentials.is_zero());
assert!(v.randao_commitment.is_zero());
assert_eq!(v.randao_last_change, 0);
assert_eq!(v.randao_skips, 0);
assert_eq!(v.balance, 0);
assert_eq!(v.status, 0);
assert_eq!(v.exit_slot, 0);
assert_eq!(v.latest_status_change_slot, 0);
assert_eq!(v.exit_count, 0);
}
}