aboutsummaryrefslogtreecommitdiff
path: root/src/math/big/floatconv_test.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2015-05-26 14:57:05 -0700
committerRobert Griesemer <gri@golang.org>2015-05-27 22:09:47 +0000
commit0858d8847d0cdcc03ecb336c208706516bc0ab40 (patch)
tree01737fb05295ec2b7f7adedf0afded6b5a8ab27d /src/math/big/floatconv_test.go
parentacd82d5017a6d30781d7b8caa6033694353fa7a8 (diff)
downloadgo-0858d8847d0cdcc03ecb336c208706516bc0ab40.tar.xz
math/big: removed TODO, cleanups
- factor out handling of sign - rename bstring, pstring to fmtB, fmtP consistent with fmtE, fmtF - move all float-to-string conversion functions into ftoa.go - no functional changes Change-Id: I5970ecb874dc9c387630b59147d90bda16a5d8e6 Reviewed-on: https://go-review.googlesource.com/10387 Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/math/big/floatconv_test.go')
-rw-r--r--src/math/big/floatconv_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math/big/floatconv_test.go b/src/math/big/floatconv_test.go
index 6ba15754e5..db300314f1 100644
--- a/src/math/big/floatconv_test.go
+++ b/src/math/big/floatconv_test.go
@@ -366,6 +366,7 @@ func TestFloatFormat(t *testing.T) {
// unsupported format
{"3.14", 64, 'x', 0, "%x"},
+ {"-3.14", 64, 'x', 0, "%x"},
} {
f, _, err := ParseFloat(test.x, 0, test.prec, ToNearestEven)
if err != nil {