Side by Side Diff: test/initcomma.go
Issue 5673079 :
code review 5673079: test: use testlib (fourth 100) (Closed)
Patch Set: diff -r f25acee8fc0c https://code.google.com/p/go/
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
test/fixedbugs/bug397.go
test/fixedbugs/bug398.go
test/fixedbugs/bug402.go
test/fixedbugs/bug403.go
test/fixedbugs/bug405.go
test/fixedbugs/bug410.go
test/fixedbugs/bug411.go
test/fixedbugs/bug412.go
test/fixedbugs/bug413.go
test/fixedbugs/bug416.go
test/fixedbugs/bug418.go
test/float_lit.go
test/floatcmp.go
test/for.go
test/func.go
test/func1.go
test/func3.go
test/func4.go
test/func5.go
test/func6.go
test/func7.go
test/func8.go
test/gc.go
test/gc1.go
test/gc2.go
test/goto.go
test/hashmap.go
test/if.go
test/import.go
test/import1.go
test/import5.go
test/indirect1.go
test/init.go
test/init1.go
test/initcomma.go
test/initialize.go
test/initializerr.go
test/initsyscall.go
test/int_lit.go
test/intcvt.go
test/interface/bigdata.go
test/interface/convert.go
test/interface/convert1.go
test/interface/convert2.go
test/interface/embed.go
test/interface/embed2.go
test/interface/explicit.go
test/interface/fail.go
test/interface/fake.go
test/interface/pointer.go
test/interface/receiver.go
test/interface/receiver1.go
test/interface/returntype.go
test/iota.go
test/ken/array.go
test/ken/chan.go
test/ken/chan1.go
test/ken/complit.go
test/ken/convert.go
test/ken/cplx1.go
test/ken/cplx2.go
test/ken/cplx3.go
test/ken/cplx4.go
test/ken/cplx5.go
test/ken/divconst.go
test/ken/divmod.go
test/ken/embed.go
test/ken/for.go
test/ken/interbasic.go
test/ken/interfun.go
test/ken/intervar.go
test/ken/label.go
test/ken/litfun.go
test/ken/mfunc.go
test/ken/modconst.go
test/ken/ptrfun.go
test/ken/ptrvar.go
test/ken/range.go
test/ken/rob1.go
test/ken/rob2.go
test/ken/robfor.go
test/ken/robfunc.go
test/ken/shift.go
test/ken/simparray.go
test/ken/simpbool.go
test/ken/simpconv.go
test/ken/simpfun.go
test/ken/simpswitch.go
test/ken/simpvar.go
test/ken/slicearray.go
test/ken/sliceslice.go
test/ken/strvar.go
test/label.go
test/label1.go
test/literal.go
test/malloc1.go
test/mallocfin.go
test/mallocrand.go
test/mallocrep.go
OLD NEW
1 // $G $F.go && $L $F.$A && ./$A.out 1 // run
2 2
3 // Copyright 2009 The Go Authors. All rights reserved. 3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style 4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file. 5 // license that can be found in the LICENSE file.
6 6
7 package main 7 package main
8 8
9 var a = []int{1, 2} 9 var a = []int{1, 2}
10 var b = [5]int{1, 2, 3} 10 var b = [5]int{1, 2, 3}
11 var c = []int{1} 11 var c = []int{1}
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading...
70 } 70 }
71 if d[1] != 2 { 71 if d[1] != 2 {
72 println("d[1]", d[1]) 72 println("d[1]", d[1])
73 panic("fail") 73 panic("fail")
74 } 74 }
75 if d[2] != 3 { 75 if d[2] != 3 {
76 println("d[2]", d[2]) 76 println("d[2]", d[2])
77 panic("fail") 77 panic("fail")
78 } 78 }
79 } 79 }
OLD NEW