]> Cypherpunks repositories - gostls13.git/commit
bytes: add endian base compare test
authorMeng Zhuo <mengzhuo1203@gmail.com>
Mon, 7 Oct 2019 03:30:01 +0000 (11:30 +0800)
committerCherry Zhang <cherryyz@google.com>
Mon, 7 Oct 2019 14:49:57 +0000 (14:49 +0000)
commitfc2915fabdda25912058b4e51b385e73e8ed2b4b
tree80de99185907f82b1c6ee8934d0f5e5dbf193aaf
parent8b391060004dfc03c93a76faab4a0d208a60cc1b
bytes: add endian base compare test

The current bytes test suit didn't come with endian based test
which causing #34549 can passed the try-bot.
This test will failed when little endian architecture simply using
load and compare uint.

Update #34549

Change-Id: I0973c2cd505ce21c2bed1deeb7d526f1e872118d
Reviewed-on: https://go-review.googlesource.com/c/go/+/198358
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/bytes/compare_test.go