go/src/math/big/rat_test.go

func TestZeroRat(t *testing.T) {}

func TestRatSign(t *testing.T) {}

var ratCmpTests

func TestRatCmp(t *testing.T) {}

func TestIsInt(t *testing.T) {}

func TestRatAbs(t *testing.T) {}

func TestRatNeg(t *testing.T) {}

func TestRatInv(t *testing.T) {}

type ratBinFun

type ratBinArg

func testRatBin(t *testing.T, i int, name string, f ratBinFun, a ratBinArg) {}

var ratBinTests

func TestRatBin(t *testing.T) {}

func TestIssue820(t *testing.T) {}

var setFrac64Tests

func TestRatSetFrac64Rat(t *testing.T) {}

func TestIssue2379(t *testing.T) {}

func TestIssue3521(t *testing.T) {}

func TestFloat32Distribution(t *testing.T) {}

func TestFloat64Distribution(t *testing.T) {}

// TestSetFloat64NonFinite checks that SetFloat64 of a non-finite value
// returns nil.
func TestSetFloat64NonFinite(t *testing.T) {}

// checkNonLossyRoundtrip32 checks that a float->Rat->float roundtrip is
// non-lossy for finite f.
func checkNonLossyRoundtrip32(t *testing.T, f float32) {}

// checkNonLossyRoundtrip64 checks that a float->Rat->float roundtrip is
// non-lossy for finite f.
func checkNonLossyRoundtrip64(t *testing.T, f float64) {}

// delta returns the absolute difference between r and f.
func delta(r *Rat, f float64) *Rat {}

// checkIsBestApprox32 checks that f is the best possible float32
// approximation of r.
// Returns true on success.
func checkIsBestApprox32(t *testing.T, f float32, r *Rat) bool {}

// checkIsBestApprox64 checks that f is the best possible float64
// approximation of r.
// Returns true on success.
func checkIsBestApprox64(t *testing.T, f float64, r *Rat) bool {}

func isEven32(f float32) bool {}

func isEven64(f float64) bool {}

func TestIsFinite(t *testing.T) {}

func TestRatSetInt64(t *testing.T) {}

func TestRatSetUint64(t *testing.T) {}

func BenchmarkRatCmp(b *testing.B) {}

// TestIssue34919 verifies that a Rat's denominator is not modified
// when simply accessing the Rat value.
func TestIssue34919(t *testing.T) {}

func TestDenomRace(t *testing.T) {}