diff options
Diffstat (limited to 'libgo/go/encoding/hex/hex_test.go')
-rw-r--r-- | libgo/go/encoding/hex/hex_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/encoding/hex/hex_test.go b/libgo/go/encoding/hex/hex_test.go index 456f9eac724..356f590f027 100644 --- a/libgo/go/encoding/hex/hex_test.go +++ b/libgo/go/encoding/hex/hex_test.go @@ -65,7 +65,7 @@ func TestDecodeString(t *testing.T) { t.Errorf("#%d: unexpected err value: %s", i, err) continue } - if bytes.Compare(dst, test.dec) != 0 { + if !bytes.Equal(dst, test.dec) { t.Errorf("#%d: got: %#v want: #%v", i, dst, test.dec) } } |