mirror of
https://github.com/golang/go
synced 2024-11-18 15:34:53 -07:00
math/big: gofmt nat_test.go
Was apparently checked in by https://go-review.googlesource.com/#/c/9253/ without being gofmt-ed. TBR: agl Change-Id: I4d011dbaa15b7c5e73ca71f724f32951a0302dae Reviewed-on: https://go-review.googlesource.com/10353 Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
9279684908
commit
c344f751fc
@ -333,9 +333,9 @@ func TestTrailingZeroBits(t *testing.T) {
|
||||
}
|
||||
|
||||
var montgomeryTests = []struct {
|
||||
x, y, m string
|
||||
k0 uint64
|
||||
out32, out64 string
|
||||
x, y, m string
|
||||
k0 uint64
|
||||
out32, out64 string
|
||||
}{
|
||||
{
|
||||
"0xffffffffffffffffffffffffffffffffffffffffffffffffe",
|
||||
@ -384,7 +384,7 @@ func TestMontgomery(t *testing.T) {
|
||||
out = natFromString(test.out64)
|
||||
}
|
||||
|
||||
k0 := Word(test.k0 & _M) // mask k0 to ensure that it fits for 32-bit systems.
|
||||
k0 := Word(test.k0 & _M) // mask k0 to ensure that it fits for 32-bit systems.
|
||||
z := nat(nil).montgomery(x, y, m, k0, len(m))
|
||||
z = z.norm()
|
||||
if z.cmp(out) != 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user