Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 69 of 69 for test_sum (0.36 sec)

  1. src/image/draw/draw.go

    				// the one that minimizes sum-squared-difference.
    				// TODO(nigeltao): consider smarter algorithms.
    				bestIndex, bestSum := 0, uint32(1<<32-1)
    				for index, p := range palette {
    					sum := sqDiff(er, p[0]) + sqDiff(eg, p[1]) + sqDiff(eb, p[2]) + sqDiff(ea, p[3])
    					if sum < bestSum {
    						bestIndex, bestSum = index, sum
    						if sum == 0 {
    							break
    						}
    					}
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/platforms/PlatformResolveIntegrationTest.groovy

                            'org.gradle.status': 'release',
                        ])
                        byConstraint()
                        noArtifacts()
                    }
                    project(":sub", "org.test:sub:1.9") {
                        variant("apiElements", ['org.gradle.category': 'library',
                                                'org.gradle.dependency.bundling': 'external',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    	q.MarshalJSON()
    }
    
    func TestDeepCopy(t *testing.T) {
    	q := NewQuantity(5, DecimalSI)
    	c := q.DeepCopy()
    	c.Set(6)
    	if q.Value() == 6 {
    		t.Errorf("Copy didn't")
    	}
    }
    
    func TestSub(t *testing.T) {
    	tests := []struct {
    		a        Quantity
    		b        Quantity
    		expected Quantity
    	}{
    		{decQuantity(10, 0, DecimalSI), decQuantity(1, 1, DecimalSI), decQuantity(0, 0, DecimalSI)},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/test.go

    func Atol(s string) int {
    	p := C.CString(s)
    	n := C.atol(p)
    	C.free(unsafe.Pointer(p))
    	return int(n)
    }
    
    func testConst(t *testing.T) {
    	C.myConstFunc(nil, 0, nil)
    }
    
    func testEnum(t *testing.T) {
    	if C.Enum1 != 1 || C.Enum2 != 2 {
    		t.Error("bad enum", C.Enum1, C.Enum2)
    	}
    }
    
    func testNamedEnum(t *testing.T) {
    	e := new(C.enum_E)
    
    	*e = C.Enum1
    	if *e != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  5. src/time/time_test.go

    	{Date(2311, 11, 26, 02, 16, 47, 63535996, UTC), Date(2019, 8, 16, 2, 29, 30, 268436582, UTC), 9223372036795099414},
    	{MinMonoTime, MaxMonoTime, minDuration},
    	{MaxMonoTime, MinMonoTime, maxDuration},
    }
    
    func TestSub(t *testing.T) {
    	for i, st := range subTests {
    		got := st.t.Sub(st.u)
    		if got != st.d {
    			t.Errorf("#%d: Sub(%v, %v): got %v; want %v", i, st.t, st.u, got, st.d)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  6. src/cmd/internal/testdir/testdir_test.go

    		return true
    	}
    
    	if name == ctxt.GOOS || name == ctxt.GOARCH || name == "gc" {
    		return true
    	}
    
    	if ctxt.noOptEnv && name == "gcflags_noopt" {
    		return true
    	}
    
    	if name == "test_run" {
    		return true
    	}
    
    	return false
    }
    
    // goGcflags returns the -gcflags argument to use with go build / go run.
    // This must match the flags used for building the standard library,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/ops.mlir

      // CHECK: return %[[RES1]]
    }
    
    // -----
    
    // CHECK-LABEL: testLstm
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
  8. src/net/http/transport_test.go

    		accept := req.Header.Get("Accept-Encoding")
    		if expect := req.FormValue("expect_accept"); accept != expect {
    			t.Errorf("in handler, test %v: Accept-Encoding = %q, want %q",
    				req.FormValue("testnum"), accept, expect)
    		}
    		if accept == "gzip" {
    			rw.Header().Set("Content-Encoding", "gzip")
    			gz := gzip.NewWriter(rw)
    			gz.Write([]byte(responseBody))
    			gz.Close()
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  9. RELEASE.md

    Barsdell, Benjamin Chetioui, Benjamin Peterson, bhack, Bhanu Prakash Bandaru
    Venkata, Biagio Montaruli, Brent M. Spell, bubblebooy, bzhao, cfRod, Cheng Chen,
    Cheng(Kit) Chen, Chris Tessum, Christian, chuanqiw, codeadmin_peritiae,
    COTASPAR, CuiYifeng, danielknobe, danielyou0230, dannyfriar, daria,
    DarrenZhang01, Denisa Roberts, dependabot[bot], Deven Desai, Dmitry Volodin,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
Back to top