- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 994 for EQUAL (0.2 sec)
-
subprojects/core/src/test/groovy/org/gradle/internal/classpath/intercept/InterceptScopeTest.groovy
} def "method and property scopes with the same name are not equal"() { when: InterceptScope methodScope = InterceptScope.methodsNamed("name") InterceptScope propertyScope = InterceptScope.readsOfPropertiesNamed("name") then: methodScope != propertyScope } def "constructor scopes of the same class are equal"() { expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 03 11:20:13 UTC 2022 - 2.2K bytes - Viewed (0) -
src/crypto/internal/edwards25519/scalarmult_test.go
var z Scalar var p Point p.ScalarMult(&z, B) if I.Equal(&p) != 1 { t.Error("0*B != 0") } checkOnCurve(t, &p) scEight, _ := (&Scalar{}).SetCanonicalBytes([]byte{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}) p.ScalarMult(scEight, B) if B.Equal(&p) != 1 { t.Error("1*B != 1") } checkOnCurve(t, &p) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:26:17 UTC 2023 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ObjectsTest.java
assertTrue(Objects.equal(1, 1)); assertTrue(Objects.equal(null, null)); // test distinct string objects String s1 = "foobar"; String s2 = new String(s1); assertTrue(Objects.equal(s1, s2)); assertFalse(Objects.equal(s1, null)); assertFalse(Objects.equal(null, s1)); assertFalse(Objects.equal("foo", "bar")); assertFalse(Objects.equal("1", 1)); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 18:32:41 UTC 2024 - 2.3K bytes - Viewed (0) -
pilot/pkg/status/distribution/reporter_test.go
x := struct{}{} Expect(r.status).To(Equal(map[string]string{"conA~": "a", "conB~": "a", "conC~": "c", "conD~": "d"})) Expect(r.reverseStatus).To(Equal(map[string]sets.String{"a": {"conA~": x, "conB~": x}, "c": {"conC~": x}, "d": {"conD~": x}})) r.processEvent("conA", typ, "d") Expect(r.status).To(Equal(map[string]string{"conA~": "d", "conB~": "a", "conC~": "c", "conD~": "d"}))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jan 30 17:25:17 UTC 2024 - 4.4K bytes - Viewed (0) -
pkg/kube/krt/informer_test.go
Namespace: "ns", }, } cmt.Create(cmA) tt.WaitOrdered("add/ns/a") assert.Equal(t, ConfigMaps.List(), []*corev1.ConfigMap{cmA}) cmt.Update(cmA2) tt.WaitOrdered("update/ns/a") assert.Equal(t, ConfigMaps.List(), []*corev1.ConfigMap{cmA2}) cmt.Create(cmB) tt.WaitOrdered("add/ns/b")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 3.3K bytes - Viewed (0) -
pkg/test/util/yml/parts_test.go
"istio.io/istio/pkg/test/util/yml" ) func TestEmptyDoc(t *testing.T) { g := NewWithT(t) yaml := ` ` parts := yml.SplitString(yaml) g.Expect(len(parts)).To(Equal(0)) yaml = yml.JoinString(parts...) g.Expect(yaml).To(Equal("")) } func TestSplitWithEmptyPart(t *testing.T) { expected := []string{ "a", "b", } cases := []struct { name string doc string }{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 1.8K bytes - Viewed (0) -
pkg/test/util/yml/cache_test.go
group: "networking.istio.io", kind: "Gateway", namespace: "", name: "some-ingress", } g.Expect(keys[0]).To(Equal(expected)) key1 := keys[0] file := c.GetFileFor(keys[0]) by, err := os.ReadFile(file) g.Expect(err).To(BeNil()) g.Expect(strings.TrimSpace(string(by))).To(Equal(strings.TrimSpace(gateway))) keys, err = c.Apply(virtualService) g.Expect(err).To(BeNil()) g.Expect(keys).To(HaveLen(1))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 6.8K bytes - Viewed (0) -
pkg/config/analysis/diag/messages_test.go
getDocURL := func(msg Message) string { return msg.Unstructured(false)["documentationUrl"].(string) } g.Expect(getDocURL(msgs[0])).To(Equal(url.ConfigAnalysis + "/b1/?ref=istioctl-awesome")) g.Expect(getDocURL(msgs[1])).To(Equal(url.ConfigAnalysis + "/c1/?ref=istioctl-awesome")) } func TestMessages_Filter(t *testing.T) { g := NewWithT(t) firstMsg := NewMessage(
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.2K bytes - Viewed (0) -
internal/cachevalue/cache_test.go
if err != nil { t.Fatalf("expected nil err, got %v", err) } if !t1.Equal(t2) { t.Fatalf("expected time to be equal: %s != %s", t1, t2) } time.Sleep(3 * time.Second) t3, err := cache.GetWithCtx(ctx) if err != nil { t.Fatalf("expected nil err, got %v", err) } if t1.Equal(t3) { t.Fatalf("expected time to be un-equal: %s == %s", t1, t3) } } func TestCache(t *testing.T) {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 09 00:51:34 UTC 2024 - 2.7K bytes - Viewed (0) -
pkg/config/analysis/analyzers/util/find_errorline_utils_test.go
g.Expect(ExtractLabelFromSelectorString(s)).To(Equal("label")) } func TestErrorLine(t *testing.T) { g := NewWithT(t) r := &resource.Instance{Origin: &legacykube.Origin{FieldsMap: fieldMap}} test1, err1 := ErrorLine(r, "{.metadata.name}") test2, err2 := ErrorLine(r, "{.metadata.fake}") g.Expect(test1).To(Equal(1)) g.Expect(err1).To(Equal(true)) g.Expect(test2).To(Equal(0)) g.Expect(err2).To(Equal(false)) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 02 17:36:47 UTC 2024 - 3.5K bytes - Viewed (0)