]> Cypherpunks repositories - gostls13.git/commitdiff
math/big: gofmt nat_test.go
authorRobert Griesemer <gri@golang.org>
Fri, 22 May 2015 01:06:34 +0000 (18:06 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 22 May 2015 01:09:34 +0000 (01:09 +0000)
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>
src/math/big/nat_test.go

index 69b9c30a710ebfec30eda18ccd59aa475c690333..a15a2bcac0e7a20b8b87fb4fdc393574543bc8f0 100644 (file)
@@ -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 {