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
2 people authored and shekhirin committed Jun 6, 2023
1 parent 0d345ce commit aebe09f
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 aebe09f

Please sign in to comment.