Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,627 for _Equal (0.34 sec)

  1. android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

        boolean errorNotThrown = false;
        try {
          SerializableTester.reserializeAndAssert(orig);
          errorNotThrown = true;
        } catch (AssertionFailedError error) {
          // expected
          assertContains("must be equal to the Object#hashCode", error.getMessage());
        }
        assertFalse(errorNotThrown);
      }
    
      public void testObjectWhichIsEqualButChangesClass() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

        boolean errorNotThrown = false;
        try {
          SerializableTester.reserializeAndAssert(orig);
          errorNotThrown = true;
        } catch (AssertionFailedError error) {
          // expected
          assertContains("must be equal to the Object#hashCode", error.getMessage());
        }
        assertFalse(errorNotThrown);
      }
    
      public void testObjectWhichIsEqualButChangesClass() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/FilteredMultimapValues.java

        for (Iterator<Entry<K, V>> unfilteredItr = multimap.unfiltered().entries().iterator();
            unfilteredItr.hasNext(); ) {
          Entry<K, V> entry = unfilteredItr.next();
          if (entryPredicate.apply(entry) && Objects.equal(entry.getValue(), o)) {
            unfilteredItr.remove();
            return true;
          }
        }
        return false;
      }
    
      @Override
      public boolean removeAll(Collection<?> c) {
        return Iterables.removeIf(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java

          assertFalse(
              "Should not contain key " + entry.getKey() + " mapped to value " + entry.getValue(),
              equal(getMap().get(entry.getKey()), entry.getValue()));
        }
      }
    
      private static boolean equal(@Nullable Object a, @Nullable Object b) {
        return a == b || (a != null && a.equals(b));
      }
    
      // This one-liner saves us from some ugly casts
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/CompactHashing.java

        int lastEntryIndex = -1;
        do {
          int entryIndex = next - 1;
          int entry = entries[entryIndex];
          if (getHashPrefix(entry, mask) == hashPrefix
              && Objects.equal(key, keys[entryIndex])
              && (values == null || Objects.equal(value, values[entryIndex]))) {
            int newNext = getNext(entry, mask);
            if (lastEntryIndex == -1) {
              // we need to update the root link from table[]
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Aug 02 21:41:22 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/path-params-numeric-validations.md

    여기서 `ge=1`인 경우, `item_id`는 `1`보다 "크거나(`g`reater) 같은(`e`qual)" 정수형 숫자여야 합니다.
    
    ```Python hl_lines="8"
    {!../../../docs_src/path_params_numeric_validations/tutorial004.py!}
    ```
    
    ## 숫자 검증: 크거나 같음 및 작거나 같음
    
    동일하게 적용됩니다:
    
    * `gt`: 크거나(`g`reater `t`han)
    * `le`: 작거나 같은(`l`ess than or `e`qual)
    
    ```Python hl_lines="9"
    {!../../../docs_src/path_params_numeric_validations/tutorial005.py!}
    ```
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java

    public final class ForwardingWrapperTester {
    
      private boolean testsEquals = false;
    
      /**
       * Asks for {@link Object#equals} and {@link Object#hashCode} to be tested. That is, forwarding
       * wrappers of equal instances should be equal.
       */
      @CanIgnoreReturnValue
      public ForwardingWrapperTester includingEquals() {
        this.testsEquals = true;
        return this;
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 08 17:31:55 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. src/crypto/x509/cert_pool_test.go

    		t.Run(tc.name, func(t *testing.T) {
    			equal := tc.a.Equal(tc.b)
    			if equal != tc.equal {
    				t.Errorf("Unexpected Equal result: got %t, want %t", equal, tc.equal)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 18:06:43 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  9. src/crypto/rsa/equal_test.go

    	public := &private.PublicKey
    
    	if !public.Equal(public) {
    		t.Errorf("public key is not equal to itself: %v", public)
    	}
    	if !public.Equal(crypto.Signer(private).Public().(*rsa.PublicKey)) {
    		t.Errorf("private.Public() is not Equal to public: %q", public)
    	}
    	if !private.Equal(private) {
    		t.Errorf("private key is not equal to itself: %v", private)
    	}
    
    	enc, err := x509.MarshalPKCS8PrivateKey(private)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 05 18:05:10 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  10. pkg/url/url_test.go

    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestURL(t *testing.T) {
    	assert.Equal(t, BaseURL, "https://istio.io/", "base url should be equal")
    	assert.Equal(t, DocsURL, "https://istio.io/"+DocsVersion+"/docs/", "docs url should be equal")
    
    	assert.Equal(t, OpsURL, "https://istio.io/"+DocsVersion+"/docs/ops/", "ops url should be equal")
    	assert.Equal(t, DeploymentRequirements,
    		"https://istio.io/"+DocsVersion+"/docs/ops/deployment/requirements/",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 04 11:12:37 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top