aboutsummaryrefslogtreecommitdiff
path: root/src/math/big/floatconv_test.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2015-02-05 17:21:48 -0800
committerRobert Griesemer <gri@golang.org>2015-02-06 17:21:01 +0000
commit15594df6b4e913d1ed9d7b38fa71868be28e9b63 (patch)
treeba08ef6bf4aa3719f91bebed379790f0634a15a7 /src/math/big/floatconv_test.go
parent9b6ccb13233f2977c74c73ae836212c55d342d28 (diff)
downloadgo-15594df6b4e913d1ed9d7b38fa71868be28e9b63.tar.xz
math/big: handling of +/-Inf and zero precision, enable zero values
- clarified representation of +/-Inf - only 0 and Inf values can have 0 precision - a zero precision value used as result value takes the max precision of the arguments (to be fine-tuned for setters) - the zero precision approach makes Float zero values possible (they represent +0) - more tests Missing: Filling in the blanks. More tests. Change-Id: Ibb4f97e12e1f356c3085ce80f3464e97b82ac130 Reviewed-on: https://go-review.googlesource.com/4000 Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/math/big/floatconv_test.go')
-rw-r--r--src/math/big/floatconv_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/big/floatconv_test.go b/src/math/big/floatconv_test.go
index d3290dddd0..11e5df448a 100644
--- a/src/math/big/floatconv_test.go
+++ b/src/math/big/floatconv_test.go
@@ -192,9 +192,9 @@ func TestFloat64Format(t *testing.T) {
// {math.NaN(), 'g', -1, "NaN"},
// {-math.NaN(), 'g', -1, "NaN"},
- // {math.Inf(0), 'g', -1, "+Inf"},
- // {math.Inf(-1), 'g', -1, "-Inf"},
- // {-math.Inf(0), 'g', -1, "-Inf"},
+ {math.Inf(0), 'g', -1, "+Inf"},
+ {math.Inf(-1), 'g', -1, "-Inf"},
+ {-math.Inf(0), 'g', -1, "-Inf"},
{-1, 'b', -1, "-4503599627370496p-52"},