Source file
test/fixedbugs/issue29264.go
1
2
3
4
5
6
7
8
9
10 package main
11
12 import "fmt"
13 import "strings"
14
15 func main() {
16 a := [][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]int{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{{42}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
17 got := fmt.Sprint(a)
18 want := strings.Repeat("[", 100) + "42" + strings.Repeat("]", 100)
19 if got != want {
20 fmt.Printf("got %q\nwant %q\n", got, want)
21 }
22 }
23
View as plain text