summaryrefslogtreecommitdiff
path: root/test/ddd3.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2010-03-24 16:46:53 -0700
committerRob Pike <r@golang.org>2010-03-24 16:46:53 -0700
commit420d470e6ef507a6183e49c42f04051349803487 (patch)
tree19bab8994a6a628a1309f01d31a9809d6f6ac5be /test/ddd3.go
parente2854b2f5f4789b20941f5b35082d9fa33c152e3 (diff)
downloadgolang-420d470e6ef507a6183e49c42f04051349803487.tar.gz
delete all uses of panicln by rewriting them using panic or,
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
Diffstat (limited to 'test/ddd3.go')
-rw-r--r--test/ddd3.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/ddd3.go b/test/ddd3.go
index f5f9952d3..5d5ebdf0f 100644
--- a/test/ddd3.go
+++ b/test/ddd3.go
@@ -10,15 +10,19 @@ import "./ddd2"
func main() {
if x := ddd.Sum(1, 2, 3); x != 6 {
- panicln("ddd.Sum 6", x)
+ println("ddd.Sum 6", x)
+ panic("fail")
}
if x := ddd.Sum(); x != 0 {
- panicln("ddd.Sum 0", x)
+ println("ddd.Sum 0", x)
+ panic("fail")
}
if x := ddd.Sum(10); x != 10 {
- panicln("ddd.Sum 10", x)
+ println("ddd.Sum 10", x)
+ panic("fail")
}
if x := ddd.Sum(1, 8); x != 9 {
- panicln("ddd.Sum 9", x)
+ println("ddd.Sum 9", x)
+ panic("fail")
}
}