Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestFloat64 (0.11 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/v2/conversion_test.go

    				Maximum:          &testFloat64,
    				ExclusiveMaximum: true,
    			},
    			expected: new(spec.Schema).
    				WithMaximum(testFloat64, true),
    		},
    		{
    			name: "minimum and exclusiveMinimum",
    			in: &apiextensions.JSONSchemaProps{
    				Minimum:          &testFloat64,
    				ExclusiveMinimum: true,
    			},
    			expected: new(spec.Schema).
    				WithMinimum(testFloat64, true),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  2. src/runtime/softfloat64_test.go

    	}
    }
    
    func add(x, y float64) float64 { return x + y }
    func sub(x, y float64) float64 { return x - y }
    func mul(x, y float64) float64 { return x * y }
    func div(x, y float64) float64 { return x / y }
    
    func TestFloat64(t *testing.T) {
    	base := []float64{
    		0,
    		math.Copysign(0, -1),
    		-1,
    		1,
    		math.NaN(),
    		math.Inf(+1),
    		math.Inf(-1),
    		0.1,
    		1.5,
    		1.9999999999999998,     // all 1s mantissa
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4K bytes
    - Viewed (0)
  3. src/math/big/int_test.go

    			x.Add(x, NewInt(n))
    		})
    		if got != 0 {
    			t.Errorf("x.Add(x, NewInt(%d)), wanted 0 allocations, got %f", n, got)
    		}
    	}
    }
    
    func TestFloat64(t *testing.T) {
    	for _, test := range []struct {
    		istr string
    		f    float64
    		acc  Accuracy
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
Back to top