]> Cypherpunks repositories - gostls13.git/commit
bytes,strings,unicode/utf16: use slices to clean up tests
authorapocelipes <seve3r@outlook.com>
Wed, 24 Jul 2024 10:32:22 +0000 (10:32 +0000)
committerRobert Griesemer <gri@google.com>
Wed, 24 Jul 2024 18:45:08 +0000 (18:45 +0000)
commitc0eac35a4cd3ca16d3d1fc153a155b0b18f49633
treed0b5071068940ae7a1bcce685a80828dc95e02d8
parent910e6b5fae7cbf84e4a3fcfa6739e20239080bcd
bytes,strings,unicode/utf16: use slices to clean up tests

Replace reflect.DeepEqual with slices.Equal, which is much faster.
Remove some redundant helper functions.

Change-Id: I51b32a3d0c3fc5ad0d3b6ff0dd03f39c507e5762
GitHub-Last-Rev: e21f46d4a026b6bf6e8d912dfb8d361a20a4e779
GitHub-Pull-Request: golang/go#67609
Reviewed-on: https://go-review.googlesource.com/c/go/+/587937
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/bytes/bytes_test.go
src/strings/search_test.go
src/strings/strings_test.go
src/unicode/utf16/utf16_test.go