From: cuiweixie Date: Fri, 19 May 2023 17:14:32 +0000 (+0800) Subject: maps: enhance the robustness of the tests X-Git-Tag: go1.21rc1~413 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a1a048a8abca89c39b0507c3a28c7d46a05bb6e3;p=gostls13.git 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 --- 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)