diff options
author | Rob Pike <r@golang.org> | 2010-03-24 16:46:53 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2010-03-24 16:46:53 -0700 |
commit | 420d470e6ef507a6183e49c42f04051349803487 (patch) | |
tree | 19bab8994a6a628a1309f01d31a9809d6f6ac5be /test/fixedbugs/bug246.go | |
parent | e2854b2f5f4789b20941f5b35082d9fa33c152e3 (diff) | |
download | golang-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/fixedbugs/bug246.go')
-rw-r--r-- | test/fixedbugs/bug246.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/fixedbugs/bug246.go b/test/fixedbugs/bug246.go index 1c4dc0d53..12041eb1d 100644 --- a/test/fixedbugs/bug246.go +++ b/test/fixedbugs/bug246.go @@ -15,8 +15,9 @@ func main() { // fails x2 := (*int)(unsafe.Pointer(uintptr(0x234))) - + if x1 != x2 { - panicln("mismatch", x1, x2) + println("mismatch", x1, x2) + panic("fail") } } |