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

Side by Side Diff: test/ddd.go

Issue 5656082: code review 5656082: test: use testlib (first 100) (Closed)
Patch Set: diff -r e1704b98dff6 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/copy.go ('k') | test/ddd1.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 $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 func sum(args ...int) int { 9 func sum(args ...int) int {
10 s := 0 10 s := 0
11 for _, v := range args { 11 for _, v := range args {
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 if x := (*U).Sum(&U{}, 1, 3, 5, 2); x != 11 { 209 if x := (*U).Sum(&U{}, 1, 3, 5, 2); x != 11 {
210 println("(*U).Sum", x) 210 println("(*U).Sum", x)
211 panic("fail") 211 panic("fail")
212 } 212 }
213 if x := U.Sum(U{}, 1, 3, 5, 1); x != 10 { 213 if x := U.Sum(U{}, 1, 3, 5, 1); x != 10 {
214 println("U.Sum", x) 214 println("U.Sum", x)
215 panic("fail") 215 panic("fail")
216 } 216 }
217 */ 217 */
218 } 218 }
OLDNEW
« no previous file with comments | « test/copy.go ('k') | test/ddd1.go » ('j') | no next file with comments »

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