Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFloatInt64 (0.48 sec)

  1. src/math/big/float_test.go

    	} {
    		x := makeFloat(test.x)
    		out, acc := x.Uint64()
    		if out != test.out || acc != test.acc {
    			t.Errorf("%s: got %d (%s); want %d (%s)", test.x, out, acc, test.out, test.acc)
    		}
    	}
    }
    
    func TestFloatInt64(t *testing.T) {
    	for _, test := range []struct {
    		x   string
    		out int64
    		acc Accuracy
    	}{
    		{"-Inf", math.MinInt64, Above},
    		{"-1e10000", math.MinInt64, Above},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
Back to top