Index: src/pkg/math/big/int_test.go |
=================================================================== |
--- a/src/pkg/math/big/int_test.go |
+++ b/src/pkg/math/big/int_test.go |
@@ -643,7 +643,7 @@ |
func checkBytes(b []byte) bool { |
b2 := new(Int).SetBytes(b).Bytes() |
- return bytes.Compare(b, b2) == 0 |
+ return bytes.Equal(b, b2) |
} |
func TestBytes(t *testing.T) { |