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

Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
pull/26976/head
ucwong 2 years ago committed by GitHub
parent 0137bd69c5
commit 792d893ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      rlp/rlpgen/gen_test.go

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

Loading…
Cancel
Save