]> Cypherpunks repositories - gostls13.git/commit
math/big: fix TestFloatSetFloat64String
authorRobert Griesemer <gri@golang.org>
Thu, 23 Mar 2017 17:07:25 +0000 (10:07 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 23 Mar 2017 17:17:16 +0000 (17:17 +0000)
commit9ecfd177cfe9783919175780fe8f29a0e4a99f4e
treeb412b83221c4d2a2ac1b02932d7a8310266ecf60
parentff80d8ba4b4c374da80dd2393a5cf0cba336cf3e
math/big: fix TestFloatSetFloat64String

A -0 constant is the same as 0. Use explicit negative zero
for float64 -0.0. Also, fix two test cases that were wrong.

Fixes #19673.

Change-Id: Ic09775f29d9bc2ee7814172e59c4a693441ea730
Reviewed-on: https://go-review.googlesource.com/38463
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/math/big/floatconv_test.go