- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 3,257 for _Equal (0.11 sec)
-
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) -
pkg/proxy/util/nfacct/nfacct_linux_test.go
// validate request(NFNL_MSG_ACCT_GET) assert.Equal(t, 1, len(hndlr.requests)) assert.Equal(t, cmdGet, hndlr.requests[0].cmd) assert.Equal(t, uint16(unix.NLM_F_REQUEST|unix.NLM_F_DUMP), hndlr.requests[0].flags) // validate attributes assert.Equal(t, 0, len(hndlr.requests[0].data)) // validate response assert.NoError(t, err) assert.NotNil(t, counters) assert.Equal(t, len(expected), len(counters))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 18.8K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/Types.java
} @Override public boolean equals(@CheckForNull Object obj) { if (obj instanceof GenericArrayType) { GenericArrayType that = (GenericArrayType) obj; return Objects.equal(getGenericComponentType(), that.getGenericComponentType()); } return false; } private static final long serialVersionUID = 0; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 17 16:33:44 UTC 2024 - 23.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/client_ca.go
// method receiver. type caBundleContent struct { caBundle []byte } func (c *dynamicCertificateContent) Equal(rhs *dynamicCertificateContent) bool { if c == nil || rhs == nil { return c == rhs } if !c.clientCA.Equal(&rhs.clientCA) { return false } if !c.servingCert.Equal(&rhs.servingCert) { return false } if len(c.sniCerts) != len(rhs.sniCerts) { return false }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 12 18:29:15 UTC 2021 - 1.6K 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) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java
assertFalse( "Two Sets should not be equal if exactly one of them contains null.", getSet().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_smallerSet() { Collection<E> fewerElements = getSampleElements(getNumElements() - 1); assertFalse( "Sets of different sizes should not be equal.", getSet().equals(MinimalSet.from(fewerElements)));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 3.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java
assertFalse( "A List should not equal another List containing different elements.", getList().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_otherListContainingNull() { List<E> other = new ArrayList<>(getSampleElements()); other.set(other.size() / 2, null); assertFalse( "Two Lists should not be equal if exactly one of them has null at a given index.",
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 3.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java
assertFalse( "Two Sets should not be equal if exactly one of them contains null.", getSet().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_smallerSet() { Collection<E> fewerElements = getSampleElements(getNumElements() - 1); assertFalse( "Sets of different sizes should not be equal.", getSet().equals(MinimalSet.from(fewerElements)));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 3.5K 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)