aboutsummaryrefslogtreecommitdiff
path: root/test/if.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-02-22 18:23:14 -0500
committerRuss Cox <rsc@golang.org>2011-02-22 18:23:14 -0500
commit814075dffba9c3f906d9ba641e787a35289a2f86 (patch)
treeda35bfac16b2513f956eb2b0e32c7f0b1fb55f89 /test/if.go
parentd9fd11443ca0a6e421cb8f68b533eb2af136e81f (diff)
downloadgo-814075dffba9c3f906d9ba641e787a35289a2f86.tar.gz
go-814075dffba9c3f906d9ba641e787a35289a2f86.zip
test: do not depend on implicit if condition
Deleted test/ken/robif.go because test/if.go is the same program modulo formatting. R=golang-dev, gri, r2 CC=golang-dev https://golang.org/cl/4186068
Diffstat (limited to 'test/if.go')
-rw-r--r--test/if.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/if.go b/test/if.go
index db1fe8b790..c1bb69d277 100644
--- a/test/if.go
+++ b/test/if.go
@@ -45,18 +45,6 @@ func main() {
assertequal(count, 0, "if false one")
count = 0
- if {
- count = count + 1
- }
- assertequal(count, 1, "if empty")
-
- count = 0
- if one := 1; true {
- count = count + one
- }
- assertequal(count, 1, "if empty one")
-
- count = 0
if i5 < i7 {
count = count + 1
}