We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52ec56a commit 1173a04Copy full SHA for 1173a04
rust/immutable-ledger/src/validate.rs
@@ -244,10 +244,7 @@ mod tests {
244
// VALIDATE BLOCK
245
//
246
247
- match block_validation(¤t_block, &previous_block, &Blake2b) {
248
- Ok(()) => (),
249
- Err(err) => panic!("Block validation failed: {err:?}"),
250
- };
+ assert!(block_validation(¤t_block, &previous_block, &Blake2b).is_ok());
251
}
252
253
#[test]
@@ -278,9 +275,6 @@ mod tests {
278
275
)
279
276
.unwrap();
280
277
281
- match genesis_validation(&encoded_block_genesis, &Blake2b) {
282
283
- Err(err) => panic!("Genesis Block validation failed: {err:?}"),
284
+ assert!(genesis_validation(&encoded_block_genesis, &Blake2b).is_ok());
285
286
0 commit comments