Skip to content

Commit

Permalink
rlp/rlpgen: print want/expect output string if mismatch (ethereum#26932)
Browse files Browse the repository at this point in the history
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
  • Loading branch information
ucwong and MariusVanDerWijden authored Mar 24, 2023
1 parent 0137bd6 commit 792d893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rlp/rlpgen/gen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func TestOutput(t *testing.T) {
t.Fatal("error loading expected test output:", err)
}
if !bytes.Equal(output, wantOutput) {
t.Fatal("output mismatch:\n", string(output))
t.Fatalf("output mismatch, want: %v got %v", string(wantOutput), string(output))
}
})
}
Expand Down

0 comments on commit 792d893

Please sign in to comment.