diff options
author | Russ Cox <rsc@golang.org> | 2009-03-03 08:39:12 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-03-03 08:39:12 -0800 |
commit | 150fc635c53ef552024088ac65f82522b3626808 (patch) | |
tree | 028f4f1a5f6b78795c1a1ef840b49c7da342edd1 /src/lib/bignum_test.go | |
parent | 4041d184e8f1e2123b1d32d5f39190d34f50ea7e (diff) | |
download | golang-150fc635c53ef552024088ac65f82522b3626808.tar.gz |
Automated g4 rollback of changelist 25024,
plus significant hand editing.
Back to T{x} for composite literals.
R=r
OCL=25612
CL=25632
Diffstat (limited to 'src/lib/bignum_test.go')
-rw-r--r-- | src/lib/bignum_test.go | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/lib/bignum_test.go b/src/lib/bignum_test.go index 91304c1e0..d8d214dd7 100644 --- a/src/lib/bignum_test.go +++ b/src/lib/bignum_test.go @@ -264,16 +264,16 @@ func TestIntQuoRem(t *testing.T) { tester = t; test_msg = "IntQuoRem"; type T struct { x, y, q, r int }; - a := []T( - T(+8, +3, +2, +2), - T(+8, -3, -2, +2), - T(-8, +3, -2, -2), - T(-8, -3, +2, -2), - T(+1, +2, 0, +1), - T(+1, -2, 0, +1), - T(-1, +2, 0, -1), - T(-1, -2, 0, -1), - ); + a := []T{ + T{+8, +3, +2, +2}, + T{+8, -3, -2, +2}, + T{-8, +3, -2, -2}, + T{-8, -3, +2, -2}, + T{+1, +2, 0, +1}, + T{+1, -2, 0, +1}, + T{-1, +2, 0, -1}, + T{-1, -2, 0, -1}, + }; for i := uint(0); i < uint(len(a)); i++ { e := &a[i]; x, y := bignum.Int(e.x).Mul(ip), bignum.Int(e.y).Mul(ip); @@ -291,16 +291,16 @@ func TestIntDivMod(t *testing.T) { tester = t; test_msg = "IntDivMod"; type T struct { x, y, q, r int }; - a := []T( - T(+8, +3, +2, +2), - T(+8, -3, -2, +2), - T(-8, +3, -3, +1), - T(-8, -3, +3, +1), - T(+1, +2, 0, +1), - T(+1, -2, 0, +1), - T(-1, +2, -1, +1), - T(-1, -2, +1, +1), - ); + a := []T{ + T{+8, +3, +2, +2}, + T{+8, -3, -2, +2}, + T{-8, +3, -3, +1}, + T{-8, -3, +3, +1}, + T{+1, +2, 0, +1}, + T{+1, -2, 0, +1}, + T{-1, +2, -1, +1}, + T{-1, -2, +1, +1}, + }; for i := uint(0); i < uint(len(a)); i++ { e := &a[i]; x, y := bignum.Int(e.x).Mul(ip), bignum.Int(e.y).Mul(ip); |