diff options
author | Kai Backman <kaib@golang.org> | 2010-07-20 15:53:16 +0300 |
---|---|---|
committer | Kai Backman <kaib@golang.org> | 2010-07-20 15:53:16 +0300 |
commit | 1a31fd483b73182dd4e18b7823a13da402edc9c3 (patch) | |
tree | f7ca4101b3d1eb990b020464bbb2cdf846796210 /test/cmplxdivide.go | |
parent | 48bcd86daadffe6d2301c0adba92e84f51caebbb (diff) | |
download | go-1a31fd483b73182dd4e18b7823a13da402edc9c3.tar.gz |
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
http://codereview.appspot.com/1778041
Diffstat (limited to 'test/cmplxdivide.go')
-rw-r--r-- | test/cmplxdivide.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/cmplxdivide.go b/test/cmplxdivide.go index ac4730d64..6a67b175d 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) } } |