- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,149 for equal (0.01 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionEqualsTester.java
assertTrue("An Object should be equal to itself.", collection.equals(collection)); } // Comparisons to null *are* defined. @SuppressWarnings("UndefinedEquals") public void testEquals_null() { // noinspection ObjectEqualsNull assertFalse("An object should not be equal to null.", collection.equals(null)); } // A collection should essentially never be equal to a non-collection.
Registered: 2025-05-30 12:43 - Last Modified: 2025-02-12 21:10 - 2.1K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/EndpointPair.java
Registered: 2025-05-30 12:43 - Last Modified: 2024-12-22 03:38 - 8.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapEqualsTester.java
"Two Maps should not be equal if exactly one of them contains a null value.", getMap().equals(other)); } @CollectionSize.Require(absent = CollectionSize.ZERO) public void testEquals_smallerMap() { Collection<Entry<K, V>> fewerEntries = getSampleEntries(getNumEntries() - 1); assertFalse( "Maps of different sizes should not be equal.", getMap().equals(newHashMap(fewerEntries))); }
Registered: 2025-05-30 12:43 - Last Modified: 2024-11-14 23:40 - 4.9K 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: 2025-05-25 19:28 - Last Modified: 2025-04-09 14:28 - 2.7K 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: 2025-05-30 12:43 - Last Modified: 2025-04-10 20:12 - 2.6K bytes - Viewed (0) -
internal/etag/etag_test.go
} func TestEqual(t *testing.T) { for i, test := range equalTests { A, err := Parse(test.A) if err != nil { t.Fatalf("Test %d: %v", i, err) } B, err := Parse(test.B) if err != nil { t.Fatalf("Test %d: %v", i, err) } if equal := Equal(A, B); equal != test.Equal { t.Fatalf("Test %d: got %v - want %v", i, equal, test.Equal) } } }
Registered: 2025-05-25 19:28 - Last Modified: 2025-04-09 14:28 - 12.6K bytes - Viewed (0) -
cni/pkg/nodeagent/healthServer_test.go
installReady.Store(true) watchReady.Store(true) assert.Equal(t, installReady.Load(), true) assert.Equal(t, watchReady.Load(), true) makeReq(t, server.URL, constants.LivenessEndpoint, http.StatusOK) makeReq(t, server.URL, constants.ReadinessEndpoint, http.StatusOK) watchReady.Store(false) assert.Equal(t, watchReady.Load(), false) assert.Equal(t, installReady.Load(), true)
Registered: 2025-05-28 22:53 - Last Modified: 2024-01-26 20:34 - 2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionEqualsTester.java
assertTrue("An Object should be equal to itself.", collection.equals(collection)); } // Comparisons to null *are* defined. @SuppressWarnings("UndefinedEquals") public void testEquals_null() { // noinspection ObjectEqualsNull assertFalse("An object should not be equal to null.", collection.equals(null)); } // A collection should essentially never be equal to a non-collection.
Registered: 2025-05-30 12:43 - Last Modified: 2025-02-12 21:10 - 2.1K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Request.java
* Implementations must ensure that if two requests are equal according to * {@link #equals(Object)}, they have the same hashcode. * * @return a hash code value for this request */ @Override int hashCode(); /** * Returns {@code true} if the specified object is equal to this request. * Two requests are considered equal if they have the same type and all * significant fields are equal.
Registered: 2025-05-24 08:56 - Last Modified: 2025-02-07 00:45 - 4K bytes - Viewed (0) -
cni/pkg/nodeagent/ztunnelserver_linux_test.go
_, ok = cache.pods[m4.Payload.(*zdsapi.WorkloadRequest_Del).Del.Uid] assert.Equal(t, ok, false) assert.Equal(t, len(fds4), 0) sendAck(client1) // Synchronously process pod delete for client2 m4, fds4 = readRequest(t, client2) _, ok = cache.pods[m4.Payload.(*zdsapi.WorkloadRequest_Del).Del.Uid] assert.Equal(t, ok, false) assert.Equal(t, len(fds4), 0) sendAck(client2) client1.Close()
Registered: 2025-05-28 22:53 - Last Modified: 2025-03-03 21:55 - 21.4K bytes - Viewed (0)