Skip to content

Commit

Permalink
Nicer output instead of an assertion for matching states
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Sep 27, 2019
1 parent c9b6fcd commit 36afa15
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,13 @@ fn process_yaml_test(filename: &str) {
process_shard_block(&mut shard_state, &beacon_state, Some(block.into()))
}
debug!("{}", shard_state);
assert_eq!(shard_state, post_state);
if shard_state != post_state {
println!("Expected state: {}", post_state);
println!("Got state: {}", shard_state);
std::process::exit(1);
} else {
println!("Matching state.");
}
}

fn main() {
Expand Down

0 comments on commit 36afa15

Please sign in to comment.