Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 7,211 for case2 (0.08 sec)

  1. src/math/asinh.go

    		Large    = 1 << 28                    // 2**28
    	)
    	// special cases
    	if IsNaN(x) || IsInf(x, 0) {
    		return x
    	}
    	sign := false
    	if x < 0 {
    		x = -x
    		sign = true
    	}
    	var temp float64
    	switch {
    	case x > Large:
    		temp = Log(x) + Ln2 // |x| > 2**28
    	case x > 2:
    		temp = Log(2*x + 1/(Sqrt(x*x+1)+x)) // 2**28 > |x| > 2.0
    	case x < NearZero:
    		temp = x // |x| < 2**-28
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 20:02:49 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/AbstractProcessInstrumentationInDynamicGroovyIntegrationTest.groovy

        /**
         * Produces a list of test cases. Each test case is itself a list of the following structure:
         * {@code [varInitializer, processCreator, expectedPwdSuffix, expectedEnvVar]}.
         * @return the list of test cases
         */
        abstract def testCases()
    
        /**
         * Produces a list of indy compilation modes. Each test case from {@link #testCases()} will run in every mode from the returned list.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  3. src/cmp/cmp_test.go

    }
    
    func TestLess(t *testing.T) {
    	for _, test := range tests {
    		var b bool
    		switch test.x.(type) {
    		case int:
    			b = cmp.Less(test.x.(int), test.y.(int))
    		case string:
    			b = cmp.Less(test.x.(string), test.y.(string))
    		case float64:
    			b = cmp.Less(test.x.(float64), test.y.(float64))
    		case uintptr:
    			b = cmp.Less(test.x.(uintptr), test.y.(uintptr))
    		}
    		if b != (test.compare < 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. src/math/pow.go

    func pow(x, y float64) float64 {
    	switch {
    	case y == 0 || x == 1:
    		return 1
    	case y == 1:
    		return x
    	case IsNaN(x) || IsNaN(y):
    		return NaN()
    	case x == 0:
    		switch {
    		case y < 0:
    			if Signbit(x) && isOddInt(y) {
    				return Inf(-1)
    			}
    			return Inf(1)
    		case y > 0:
    			if Signbit(x) && isOddInt(y) {
    				return x
    			}
    			return 0
    		}
    	case IsInf(y, 0):
    		switch {
    		case x == -1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 24 19:10:58 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. src/go/printer/testdata/comments2.golden

    	_ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx	// comment
    	_ = yyyyyyyyyyyyyyyy			// comment - should be aligned
    
    	// test case from issue
    label:
    	mask := uint64(1)<<c - 1		// Allocation mask
    	used := atomic.LoadUint64(&h.used)	// Current allocations
    }
    
    // Test cases for issue 18782
    var _ = [][]int{
    	/*       a, b, c, d, e */
    	/* a */ {0, 0, 0, 0, 0},
    	/* b */ {0, 5, 4, 4, 4},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:50 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  6. src/go/printer/testdata/comments2.input

       _ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx // comment
       _ = yyyyyyyyyyyyyyyy // comment - should be aligned
    
    // test case from issue
    label:
       mask := uint64(1)<<c - 1 // Allocation mask
       used := atomic.LoadUint64(&h.used) // Current allocations
    }
    
    // Test cases for issue 18782
    var _ = [][]int{
       /*       a, b, c, d, e */
       /* a */ {0, 0, 0, 0, 0},
       /* b */ {0, 5, 4, 4, 4},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 00:06:54 UTC 2017
    - 2.3K bytes
    - Viewed (0)
  7. test/switch.go

    	switch x := 5; true {
    	case i5 < x:
    		assert(false, "<")
    	case i5 == x:
    		assert(true, "!")
    	case i5 > x:
    		assert(false, ">")
    	}
    
    	switch i5 {
    	case 0:
    		assert(false, "0")
    	case 1:
    		assert(false, "1")
    	case 2:
    		assert(false, "2")
    	case 3:
    		assert(false, "3")
    	case 4:
    		assert(false, "4")
    	case 5:
    		assert(true, "5")
    	case 6:
    		assert(false, "6")
    	case 7:
    		assert(false, "7")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 19 23:30:49 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  8. cmd/object-api-multipart_test.go

    		},
    		{bucketName: "a", objName: "obj", PartID: 1, expectedError: fmt.Errorf("%s", "Bucket name invalid: a")},
    		// Test case - 5.
    		// Case with invalid object names.
    		{bucketName: bucket, PartID: 1, expectedError: fmt.Errorf("%s", "Object name invalid: minio-bucket/")},
    		// Test case - 6.
    		// Valid object and bucket names but non-existent bucket.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 77.1K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/cycles5a.go

    // license that can be found in the LICENSE file.
    
    package p
    
    import "unsafe"
    
    // test case from issue #18395
    
    type (
    	A interface { B }
    	B interface { C }
    	C interface { D; F() A }
    	D interface { G() B }
    )
    
    var _ = A(nil).G // G must be found
    
    
    // test case from issue #21804
    
    type sourceBridge interface {
    	listVersions() ([]Version, error)
    }
    
    type Constraint interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. istioctl/pkg/proxystatus/proxystatus_test.go

    	wantException bool
    }
    
    func TestProxyStatus(t *testing.T) {
    	cases := []execTestCase{
    		{ // case 0, with no Isitod instance
    			args:           []string{},
    			noIstiod:       true,
    			expectedOutput: "Error: no running Istio pods in \"istio-system\"\n",
    			wantException:  true,
    		},
    		{ // case 1, with Istiod instance
    			args:           []string{},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top