3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Internally a map holds elements in up to 255 bytes of key+value.
8 // When key or value or both are too large, it uses pointers to key+value
9 // instead. Test all the combinations.
13 func seq(x, y int) [1000]byte {
15 for i := 0; i < len(r); i++ {
21 func cmp(x, y [1000]byte) {
22 for i := 0; i < len(x); i++ {
30 m := make(map[int][1000]byte)
35 cmp(m[1], seq(11, 13))
46 if x, y := m[T{}][0], m[T{1}][0]; x != 1 || y != 2 {
57 if x, y := m[T{}][0], m[T{1}][0]; x != 1 || y != 2 {
68 if x, y := m[T{}][0], m[T{1}][0]; x != 1 || y != 2 {
79 if x, y := m[T{}][0], m[T{1}][0]; x != 1 || y != 2 {
90 if x, y := m[T{}][0], m[T{1}][0]; x != 1 || y != 2 {
101 if x, y := m[T{}][0], m[T{1}][0]; x != 1 || y != 2 {
112 if x, y := m[T{}][0], m[T{1}][0]; x != 1 || y != 2 {
123 if x, y := m[T{}][0], m[T{1}][0]; x != 1 || y != 2 {
134 if x, y := m[T{}][0], m[T{1}][0]; x != 1 || y != 2 {