From a1a048a8abca89c39b0507c3a28c7d46a05bb6e3 Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Sat, 20 May 2023 01:14:32 +0800 Subject: [PATCH] maps: enhance the robustness of the tests Change-Id: I908e11196f55069d6dca6a19cd206629618e9f37 Reviewed-on: https://go-review.googlesource.com/c/go/+/496079 Auto-Submit: Keith Randall TryBot-Result: Gopher Robot Reviewed-by: Heschi Kreinick Run-TryBot: xie cui <523516579@qq.com> Reviewed-by: Keith Randall Reviewed-by: Keith Randall --- src/maps/maps_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maps/maps_test.go b/src/maps/maps_test.go index bab884ef35..e7670839c9 100644 --- a/src/maps/maps_test.go +++ b/src/maps/maps_test.go @@ -38,7 +38,7 @@ func TestKeys(t *testing.T) { var m = make(map[int]int) for i := 0; i < 840; i++ { want3 = append(want3, i) - m[i] = i + m[i] = i * i } got3 := Keys(m)