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

Delta Between Two Patch Sets: test/if.go

Issue 5673079: code review 5673079: test: use testlib (fourth 100) (Closed)
Left Patch Set: Created 13 years, 1 month ago
Right 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:
Right: Side by side diff | Download
« no previous file with change/comment | « test/hashmap.go ('k') | test/import.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
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 func assertequal(is, shouldbe int, msg string) { 9 func assertequal(is, shouldbe int, msg string) {
10 if is != shouldbe { 10 if is != shouldbe {
11 print("assertion fail", msg, "\n") 11 print("assertion fail", msg, "\n")
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 if false { 82 if false {
83 count = count + 1 83 count = count + 1
84 t := 7 84 t := 7
85 _ = t 85 _ = t
86 } else { 86 } else {
87 count = count - t 87 count = count - t
88 } 88 }
89 _ = t 89 _ = t
90 assertequal(count, -1, "if else false var outside") 90 assertequal(count, -1, "if else false var outside")
91 } 91 }
LEFTRIGHT

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