Index: src/pkg/encoding/hex/hex_test.go |
=================================================================== |
--- a/src/pkg/encoding/hex/hex_test.go |
+++ b/src/pkg/encoding/hex/hex_test.go |
@@ -65,7 +65,7 @@ |
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) |
} |
} |