diff options
Diffstat (limited to 'src/pkg/big/rat_test.go')
-rw-r--r-- | src/pkg/big/rat_test.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/pkg/big/rat_test.go b/src/pkg/big/rat_test.go index e64505ea3..dbc5bb6cc 100644 --- a/src/pkg/big/rat_test.go +++ b/src/pkg/big/rat_test.go @@ -11,7 +11,6 @@ import ( "testing" ) - var setStringTests = []struct { in, out string ok bool @@ -57,7 +56,6 @@ func TestRatSetString(t *testing.T) { } } - func TestRatScan(t *testing.T) { var buf bytes.Buffer for i, test := range setStringTests { @@ -80,7 +78,6 @@ func TestRatScan(t *testing.T) { } } - var floatStringTests = []struct { in string prec int @@ -113,7 +110,6 @@ func TestFloatString(t *testing.T) { } } - func TestRatSign(t *testing.T) { zero := NewRat(0, 1) for _, a := range setStringTests { @@ -127,7 +123,6 @@ func TestRatSign(t *testing.T) { } } - var ratCmpTests = []struct { rat1, rat2 string out int @@ -155,7 +150,6 @@ func TestRatCmp(t *testing.T) { } } - func TestIsInt(t *testing.T) { one := NewInt(1) for _, a := range setStringTests { @@ -169,7 +163,6 @@ func TestIsInt(t *testing.T) { } } - func TestRatAbs(t *testing.T) { zero := NewRat(0, 1) for _, a := range setStringTests { @@ -187,7 +180,6 @@ func TestRatAbs(t *testing.T) { } } - type ratBinFun func(z, x, y *Rat) *Rat type ratBinArg struct { x, y, z string @@ -204,7 +196,6 @@ func testRatBin(t *testing.T, i int, name string, f ratBinFun, a ratBinArg) { } } - var ratBinTests = []struct { x, y string sum, prod string @@ -261,7 +252,6 @@ func TestRatBin(t *testing.T) { } } - func TestIssue820(t *testing.T) { x := NewRat(3, 1) y := NewRat(2, 1) @@ -287,7 +277,6 @@ func TestIssue820(t *testing.T) { } } - var setFrac64Tests = []struct { a, b int64 out string @@ -310,7 +299,6 @@ func TestRatSetFrac64Rat(t *testing.T) { } } - func TestRatGobEncoding(t *testing.T) { var medium bytes.Buffer enc := gob.NewEncoder(&medium) |