diff options
| author | Dominik Honnef <dominik@honnef.co> | 2016-04-01 03:49:43 +0200 |
|---|---|---|
| committer | Dave Cheney <dave@cheney.net> | 2016-04-01 02:05:01 +0000 |
| commit | 1cb3044c9fcd88e1557eca1bf35845a4108bc1db (patch) | |
| tree | 0ab6a665c480df7fa978af784cb2bb702acdc27f /src/crypto/cipher | |
| parent | 42d62946946eb0e6dc55fe76973c84eafd113154 (diff) | |
| download | go-1cb3044c9fcd88e1557eca1bf35845a4108bc1db.tar.xz | |
all: use bytes.Equal, bytes.Contains and strings.Contains
Change-Id: Iba82a5bd3846f7ab038cc10ec72ff6bcd2c0b484
Reviewed-on: https://go-review.googlesource.com/21377
Run-TryBot: Dave Cheney <dave@cheney.net>
Reviewed-by: Dave Cheney <dave@cheney.net>
Diffstat (limited to 'src/crypto/cipher')
| -rw-r--r-- | src/crypto/cipher/xor_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/cipher/xor_test.go b/src/crypto/cipher/xor_test.go index cc1c9d72d5..d9187eb726 100644 --- a/src/crypto/cipher/xor_test.go +++ b/src/crypto/cipher/xor_test.go @@ -19,7 +19,7 @@ func TestXOR(t *testing.T) { d2 := make([]byte, 1024+alignD)[alignD:] xorBytes(d1, p, q) safeXORBytes(d2, p, q) - if bytes.Compare(d1, d2) != 0 { + if !bytes.Equal(d1, d2) { t.Error("not equal") } } |
