Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 2,371 for EQUAL (0.04 sec)

  1. src/crypto/internal/edwards25519/field/fe_test.go

    	var c, d Element
    
    	c.Select(&a, &b, 1)
    	d.Select(&a, &b, 0)
    
    	if c.Equal(&a) != 1 || d.Equal(&b) != 1 {
    		t.Errorf("Select failed")
    	}
    
    	c.Swap(&d, 0)
    
    	if c.Equal(&a) != 1 || d.Equal(&b) != 1 {
    		t.Errorf("Swap failed")
    	}
    
    	c.Swap(&d, 1)
    
    	if c.Equal(&b) != 1 || d.Equal(&a) != 1 {
    		t.Errorf("Swap failed")
    	}
    }
    
    func TestMult32(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/objfile_test.go

    	}
    
    	tests := []struct {
    		a, b  int
    		equal bool
    	}{
    		{0, 1, true},  // same contents, no relocs
    		{0, 2, false}, // different contents
    		{3, 4, true},  // same contents, same relocs
    		{3, 5, true},  // recursively same contents
    		{3, 6, false}, // same contents, different relocs
    	}
    	for _, test := range tests {
    		if (h[test.a] == h[test.b]) != test.equal {
    			eq := "equal"
    			if !test.equal {
    				eq = "not equal"
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:21:30 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  3. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/SourceFolder.java

            return Objects.equal(exported, that.exported)
                && Objects.equal(accessRules, that.accessRules)
                && Objects.equal(excludes, that.excludes)
                && Objects.equal(includes, that.includes)
                && Objects.equal(getNativeLibraryLocation(), that.getNativeLibraryLocation())
                && Objects.equal(output, that.output)
                && Objects.equal(path, that.path);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. pkg/proxy/ipvs/testing/fake_test.go

    	if !addr.Equal(expected) {
    		t.Errorf("Unexpected mismatch, expected: %v, got: %v", expected, addr)
    	}
    	addr, _ = fake.GetAllLocalAddresses()
    	if !addr.Equal(expected) {
    		t.Errorf("Unexpected mismatch, expected: %v, got: %v", expected, addr)
    	}
    	fake.SetLocalAddresses("lo", "127.0.0.1")
    	expected = nil
    	addr, _ = fake.GetLocalAddresses("lo")
    	if !addr.Equal(expected) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/SortedLists.java

       * A specification for which index to return if the list contains at least one element that
       * compares as equal to the key.
       */
      enum KeyPresentBehavior {
        /**
         * Return the index of any list element that compares as equal to the key. No guarantees are
         * made as to which index is returned, if more than one element compares as equal to the key.
         */
        ANY_PRESENT {
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_workloadentry_test.go

    	// ensure we stored and can fetch both; neither was blown away
    	assert.Equal(t,
    		s.lookup(s.wleXdsName("emptyaddr1"))[0].GetWorkload().GetName(),
    		"emptyaddr1") // can lookup this workload by name
    	assert.Equal(t,
    		s.lookup(s.wleXdsName("emptyaddr2"))[0].GetWorkload().GetName(),
    		"emptyaddr2") // can lookup this workload by name
    
    	assert.Equal(t,
    		len(s.lookup(s.addrXdsName(""))),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  7. pkg/file/file_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	body, err := io.ReadAll(f)
    	if err != nil {
    		t.Fatal(err)
    	}
    	assert.Equal(t, body, data)
    }
    
    func TestExists(t *testing.T) {
    	d := t.TempDir()
    	exist := Exists(d)
    	assert.Equal(t, exist, true)
    
    	unExist := Exists("unExist")
    	assert.Equal(t, unExist, false)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 11 19:10:54 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/pod_test.go

    	}
    
    	createPod("128.0.0.1", "pod")
    	assert.Equal(t, c.pods.getPodKeys("128.0.0.1"), []types.NamespacedName{{Name: "pod", Namespace: "ns"}})
    
    	// Change the pod IP. This can happen if the pod moves to another node, for example.
    	createPod("128.0.0.2", "pod")
    	assert.Equal(t, c.pods.getPodKeys("128.0.0.2"), []types.NamespacedName{{Name: "pod", Namespace: "ns"}})
    	assert.Equal(t, c.pods.getPodKeys("128.0.0.1"), nil)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 18:27:40 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/attributes_test.go

    	annotations := attr.getAnnotations(auditinternal.LevelMetadata)
    	assert.Equal(t, annotations["foo.admission.k8s.io/key1"], "value1")
    
    	// test overwrite
    	assert.Error(t, attr.AddAnnotation("foo.admission.k8s.io/key1", "value1-overwrite"),
    		"admission annotations should not be allowd to be overwritten")
    	annotations = attr.getAnnotations(auditinternal.LevelMetadata)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 19:44:40 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. platforms/ide/ide/src/main/java/org/gradle/plugins/ide/idea/model/ProjectLibrary.java

            }
            ProjectLibrary that = (ProjectLibrary) obj;
            return Objects.equal(name, that.name)
                && Objects.equal(type, that.type)
                && Objects.equal(compilerClasspath, that.compilerClasspath)
                && Objects.equal(classes, that.classes)
                && Objects.equal(javadoc, that.javadoc)
                && Objects.equal(sources, that.sources);
        }
    
        @Override
        public int hashCode() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 5.2K bytes
    - Viewed (0)
Back to top