aboutsummaryrefslogtreecommitdiff
path: root/src/math/big/float_test.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2015-03-13 14:20:07 -0700
committerRobert Griesemer <gri@golang.org>2015-03-13 21:30:11 +0000
commita4bfe64f00f09b5d98cc7bb680b768af1bebebc9 (patch)
tree6fba48a55160ead9ca016f88d70a2a6966336389 /src/math/big/float_test.go
parentf6580319e4045e19304eccd8c37cd36a7cfef73b (diff)
downloadgo-a4bfe64f00f09b5d98cc7bb680b768af1bebebc9.tar.xz
math/big: fix minor documentation issue
Change-Id: Ib42f75c03573cec16801b79a6eb9b1b542028f4f Reviewed-on: https://go-review.googlesource.com/7524 Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/math/big/float_test.go')
-rw-r--r--src/math/big/float_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/big/float_test.go b/src/math/big/float_test.go
index cc38f68436..86b1c6f7a1 100644
--- a/src/math/big/float_test.go
+++ b/src/math/big/float_test.go
@@ -279,7 +279,7 @@ func TestFloatSetMantExp(t *testing.T) {
}
// test inverse property
mant := new(Float)
- if z.SetMantExp(mant, want.MantExp(mant)).Cmp(want) != 0 {
+ if z.SetMantExp(mant, want.MantExp(mant)).Cmp(want).Neq() {
t.Errorf("Inverse property not satisfied: got %s; want %s", z.Format('g', 10), test.z)
}
}