- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestCloneWithMapAssign (0.29 sec)
-
src/maps/maps_test.go
if len(m2) != 8 { t.Errorf("len2(m2) = %d, want %d", len(m2), 8) } for i := 0; i < 8; i++ { if m2[i] != m[i] { t.Errorf("m2[%d] = %d, want %d", i, m2[i], m[i]) } } } func TestCloneWithMapAssign(t *testing.T) { var m = make(map[int]int) const N = 25 for i := 0; i < N; i++ { m[i] = i } m2 := Clone(m) if len(m2) != N { t.Errorf("len2(m2) = %d, want %d", len(m2), N) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 17:05:56 UTC 2023 - 5.6K bytes - Viewed (0)