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 14:17:39 +01:00
committed by GitHub
co-authored by Marius van der Wijden
parent 0137bd69c5
commit 792d893ed0
+1 -1
View File
@@ -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))
}
})
}