]> Cypherpunks repositories - gostls13.git/commit
bytes: vary the input alignment to Compare argument in compare_test.go
authorLotusFenn <fenn.lotus@gmail.com>
Sat, 7 Jul 2018 01:21:04 +0000 (09:21 +0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 11 Oct 2018 04:45:18 +0000 (04:45 +0000)
commitc96c2a39bb09da48b3af63de58f65fdc82865746
tree35ed42d87a433ef024ab9626158327443d9cb0ba
parent9a9dc36f97bf57e186ab8183a27927abb9aecd61
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>
src/bytes/compare_test.go