Side by Side Diff: test/ken/cplx5.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 $D/$F.go && $L $F.$A && ./$A.out 1 // run
2 2
3 // Copyright 2010 The Go Authors. All rights reserved. 3 // Copyright 2010 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 [12]complex128 9 var a [12]complex128
10 var s []complex128 10 var s []complex128
11 var c chan complex128 11 var c chan complex128
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading...
61 if m[5i-5] != 5-5i { 61 if m[5i-5] != 5-5i {
62 panic(m[5i-5]) 62 panic(m[5i-5])
63 } 63 }
64 vm := m[complex(-5, 5)] 64 vm := m[complex(-5, 5)]
65 if vm != 5-5i { 65 if vm != 5-5i {
66 panic(vm) 66 panic(vm)
67 } 67 }
68 } 68 }
69 69
70 func chantest(c chan complex128) { c <- a[5] } 70 func chantest(c chan complex128) { c <- a[5] }
OLD NEW