- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestGrowWithNaN (0.15 sec)
-
src/runtime/map_test.go
func TestAlias(t *testing.T) { m := make(map[int]int, 0) m[0] = 5 n := m n[0] = 6 if m[0] != 6 { t.Error("alias didn't work") } } func TestGrowWithNaN(t *testing.T) { m := make(map[float64]int, 4) nan := math.NaN() // Use both assignment and assignment operations as they may // behave differently. m[nan] = 1 m[nan] = 2 m[nan] += 4
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 33.5K bytes - Viewed (0)