Index: src/cmd/gofmt/long_test.go |
=================================================================== |
--- a/src/cmd/gofmt/long_test.go |
+++ b/src/cmd/gofmt/long_test.go |
@@ -84,7 +84,7 @@ |
} |
// the first and 2nd result should be identical |
- if bytes.Compare(b1.Bytes(), b2.Bytes()) != 0 { |
+ if !bytes.Equal(b1.Bytes(), b2.Bytes()) { |
t.Errorf("gofmt %s not idempotent", filename) |
} |
} |