diff options
Diffstat (limited to 'src/math/big/bits_test.go')
| -rw-r--r-- | src/math/big/bits_test.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/math/big/bits_test.go b/src/math/big/bits_test.go index 3ce24222d7..14ecab5909 100644 --- a/src/math/big/bits_test.go +++ b/src/math/big/bits_test.go @@ -203,18 +203,18 @@ func TestFromBits(t *testing.T) { }{ // all different bit numbers {nil, "0"}, - {Bits{0}, "0x.8p1"}, - {Bits{1}, "0x.8p2"}, - {Bits{-1}, "0x.8p0"}, - {Bits{63}, "0x.8p64"}, - {Bits{33, -30}, "0x.8000000000000001p34"}, - {Bits{255, 0}, "0x.8000000000000000000000000000000000000000000000000000000000000001p256"}, + {Bits{0}, "0x.8p+1"}, + {Bits{1}, "0x.8p+2"}, + {Bits{-1}, "0x.8p+0"}, + {Bits{63}, "0x.8p+64"}, + {Bits{33, -30}, "0x.8000000000000001p+34"}, + {Bits{255, 0}, "0x.8000000000000000000000000000000000000000000000000000000000000001p+256"}, // multiple equal bit numbers - {Bits{0, 0}, "0x.8p2"}, - {Bits{0, 0, 0, 0}, "0x.8p3"}, - {Bits{0, 1, 0}, "0x.8p3"}, - {append(Bits{2, 1, 0} /* 7 */, Bits{3, 1} /* 10 */ ...), "0x.88p5" /* 17 */}, + {Bits{0, 0}, "0x.8p+2"}, + {Bits{0, 0, 0, 0}, "0x.8p+3"}, + {Bits{0, 1, 0}, "0x.8p+3"}, + {append(Bits{2, 1, 0} /* 7 */, Bits{3, 1} /* 10 */ ...), "0x.88p+5" /* 17 */}, } { f := test.bits.Float() if got := f.Format('p', 0); got != test.want { |
