aboutsummaryrefslogtreecommitdiff
path: root/test/cmplxdivide.go
diff options
context:
space:
mode:
authorKai Backman <kaib@golang.org>2010-07-20 15:53:16 +0300
committerKai Backman <kaib@golang.org>2010-07-20 15:53:16 +0300
commit36057e721e6fdc5c3dff8228c77ea36027a872c4 (patch)
tree32c7e536caa7170b5b633d8e182863f46372ee63 /test/cmplxdivide.go
parent658d5213585d651b01b9b0e41a32b936093493d5 (diff)
downloadgo-36057e721e6fdc5c3dff8228c77ea36027a872c4.tar.gz
go-36057e721e6fdc5c3dff8228c77ea36027a872c4.zip
more soft float support. passes several basic tests
but with less precision than hardware counterparts. fixed a number of tests to output BUG when they failed. changed the runner to distinghuish between output and output containing ^BUG R=rsc CC=dho, golang-dev https://golang.org/cl/1778041
Diffstat (limited to 'test/cmplxdivide.go')
-rw-r--r--test/cmplxdivide.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cmplxdivide.go b/test/cmplxdivide.go
index ac4730d647..6a67b175de 100644
--- a/test/cmplxdivide.go
+++ b/test/cmplxdivide.go
@@ -34,9 +34,14 @@ func calike(a, b complex128) bool {
}
func main() {
+ bad := false
for _, t := range tests {
x := t.f/t.g
if !calike(x, t.out) {
+ if !bad {
+ fmt.Printf("BUG\n")
+ bad = true
+ }
fmt.Printf("%v/%v: expected %v error; got %v\n", t.f, t.g, t.out, x)
}
}