1
0
mirror of https://github.com/golang/go synced 2024-11-16 20:14:48 -07:00

sort: fix typo in sort_test.go

Change-Id: Ibc1344b678d5f7c730b924c697717305c90c26e9
Reviewed-on: https://go-review.googlesource.com/c/go/+/569537
Commit-Queue: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
This commit is contained in:
Alex Driuk 2024-03-06 15:56:14 +01:00 committed by Gopher Robot
parent db44044f75
commit 7101fd1e97

View File

@ -50,7 +50,7 @@ func TestSortFloat64sCompareSlicesSort(t *testing.T) {
slices.Sort(slice2)
// Compare for equality using cmp.Compare, which considers NaNs equal.
if !slices.EqualFunc(slice1, slice1, func(a, b float64) bool { return cmp.Compare(a, b) == 0 }) {
if !slices.EqualFunc(slice1, slice2, func(a, b float64) bool { return cmp.Compare(a, b) == 0 }) {
t.Errorf("mismatch between Sort and slices.Sort: got %v, want %v", slice1, slice2)
}
}