rlp/rlpgen: print want/expect output string if mismatch (#26932)

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
This commit is contained in:
ucwong 2023-03-24 07:17:39 -06:00 committed by GitHub
parent 0137bd69c5
commit 792d893ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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))
}
})
}