1
0
mirror of https://github.com/golang/go synced 2024-11-23 04:40:09 -07:00

maps: enhance the robustness of the tests

Change-Id: I908e11196f55069d6dca6a19cd206629618e9f37
Reviewed-on: https://go-review.googlesource.com/c/go/+/496079
Auto-Submit: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Run-TryBot: xie cui <523516579@qq.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
cuiweixie 2023-05-20 01:14:32 +08:00 committed by Gopher Robot
parent 09e0f50d03
commit a1a048a8ab

View File

@ -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)