Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(314)

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/ Created 13 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/init1.go ('k') | test/initialize.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « test/init1.go ('k') | test/initialize.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b