From 7101fd1e97c11db3af95b1d3ac6abaabd30d8945 Mon Sep 17 00:00:00 2001 From: Alex Driuk Date: Wed, 6 Mar 2024 15:56:14 +0100 Subject: [PATCH] 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 LUCI-TryBot-Result: Go LUCI Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor --- src/sort/sort_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sort/sort_test.go b/src/sort/sort_test.go index ba757a845aa..ba0f0c52249 100644 --- a/src/sort/sort_test.go +++ b/src/sort/sort_test.go @@ -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) } }