Replace assert! with assert_ne! (#1140)

This commit is contained in:
Akihito Nakano
2020-05-13 16:05:12 +09:00
committed by GitHub
parent 62ff6d9191
commit 637ba8120b
5 changed files with 6 additions and 6 deletions

View File

@@ -365,7 +365,7 @@ mod tests {
let different_root = Hash256::from_low_u64_be(1337);
unset_bit(&mut a_different, 0);
sign(&mut a_different, 2, genesis_validators_root);
assert!(a_different.data.beacon_block_root != different_root);
assert_ne!(a_different.data.beacon_block_root, different_root);
a_different.data.beacon_block_root = different_root;
assert_eq!(

View File

@@ -687,7 +687,7 @@ where
AttestationStrategy::SomeValidators(faulty_validators.to_vec()),
);
assert!(honest_head != faulty_head, "forks should be distinct");
assert_ne!(honest_head, faulty_head, "forks should be distinct");
(honest_head, faulty_head)
}