go/src/bytes
LotusFenn c96c2a39bb bytes: vary the input alignment to Compare argument in compare_test.go
Currently there are no tests that vary the alignment of Compare arguments.
Since Compare is written in assembly on most platforms (in internal/bytealg)
we should be testing different input alignments. This change modifies TestCompare
to vary the alignment of the second argument of Compare.

Updates #26129

Change-Id: I4c30a5adf96a41225df748675f4e9beea413b35c
Reviewed-on: https://go-review.googlesource.com/c/122536
Reviewed-by: Lotus Fenn <fenn.lotus@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-10-11 04:45:18 +00:00
..
boundary_test.go bytes: reduce work in IndexNearPageBoundary test 2017-11-04 11:09:49 +00:00
buffer.go bytes: remove bootstrap array from Buffer 2018-09-06 19:33:18 +00:00
buffer_test.go all: fix typos detected by github.com/client9/misspell 2018-08-23 15:54:07 +00:00
bytes.go bytes, strings: add ReplaceAll 2018-09-26 20:51:23 +00:00
bytes_decl.go internal/bytealg: move compare functions to bytealg 2018-03-04 17:49:39 +00:00
bytes_test.go bytes, strings: add ReplaceAll 2018-09-26 20:51:23 +00:00
compare_test.go bytes: vary the input alignment to Compare argument in compare_test.go 2018-10-11 04:45:18 +00:00
example_test.go bytes: add example for Buffer.Len 2018-08-30 19:10:14 +00:00
export_test.go internal/bytealg: move Count to bytealg 2018-03-04 17:49:25 +00:00
reader.go bytes: add documentation to reader methods 2017-09-21 18:57:04 +00:00
reader_test.go bytes: improve test readability 2017-09-20 13:41:03 +00:00