- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestGrowWithNegativeZero (0.4 sec)
-
src/runtime/map_test.go
if cnt != 3 { t.Error("NaN keys lost during grow") } if s != 7 { t.Error("NaN values lost during grow") } } type FloatInt struct { x float64 y int } func TestGrowWithNegativeZero(t *testing.T) { negzero := math.Copysign(0.0, -1.0) m := make(map[FloatInt]int, 4) m[FloatInt{0.0, 0}] = 1 m[FloatInt{0.0, 1}] += 2 m[FloatInt{0.0, 2}] += 4 m[FloatInt{0.0, 3}] = 8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 33.5K bytes - Viewed (0)