- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestEmptyKeyAndValue (0.53 sec)
-
src/runtime/map_test.go
} y, ok := m[0] if ok { t.Errorf("map value should be missing") } if y != (T{}) { t.Errorf("map value not zero") } } type empty struct { } func TestEmptyKeyAndValue(t *testing.T) { a := make(map[int]empty, 4) b := make(map[empty]int, 4) c := make(map[empty]empty, 4) a[0] = empty{} b[empty{}] = 0 b[empty{}] = 1 c[empty{}] = empty{} if len(a) != 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 33.5K bytes - Viewed (0)