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 | 36057e721e6fdc5c3dff8228c77ea36027a872c4 (patch) | |
tree | 32c7e536caa7170b5b633d8e182863f46372ee63 /test/zerodivide.go | |
parent | 658d5213585d651b01b9b0e41a32b936093493d5 (diff) | |
download | go-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/zerodivide.go')
-rw-r--r-- | test/zerodivide.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/zerodivide.go b/test/zerodivide.go index 9d35b392bc..e0407df7c8 100644 --- a/test/zerodivide.go +++ b/test/zerodivide.go @@ -137,6 +137,7 @@ func alike(a, b float64) bool { } func main() { + bad := false for _, t := range errorTests { if t.err != "" && syscall.OS == "nacl" { continue @@ -161,6 +162,10 @@ func main() { for _, t := range floatTests { x := t.f/t.g if !alike(x, t.out) { + if !bad { + bad = true + fmt.Printf("BUG\n") + } fmt.Printf("%v/%v: expected %g error; got %g\n", t.f, t.g, t.out, x) } } |