Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 1,270 for expectEq (0.06 sec)

  1. guava-tests/test/com/google/common/hash/HashingTest.java

        ByteBuffer buffer = ByteBuffer.wrap(combined);
        buffer.put(md5Hash);
        buffer.put(murmur3Hash);
        HashCode expected = HashCode.fromBytes(combined);
    
        assertEquals(
            expected, Hashing.concatenating(Hashing.md5(), Hashing.murmur3_32()).hashLong(42L));
        assertEquals(
            expected, Hashing.concatenating(asList(Hashing.md5(), Hashing.murmur3_32())).hashLong(42L));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 09 17:40:09 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. cmd/encryption-v1_test.go

    	}
    	if encOff != 595127964 {
    		t.Fatalf("Test: expected %d, got %d", 595127964, encOff)
    	}
    	if encLength != 32796 {
    		t.Fatalf("Test: expected %d, got %d", 32796, encLength)
    	}
    	if skipLen != 32756 {
    		t.Fatalf("Test: expected %d, got %d", 32756, skipLen)
    	}
    	if seqNumber != 4538 {
    		t.Fatalf("Test: expected %d, got %d", 4538, seqNumber)
    	}
    	if partStart != 1 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 24 04:17:08 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  3. internal/pubsub/pubsub_test.go

    		t.Fatalf("unexpected error: %v", err)
    	}
    	ps.Lock()
    	defer ps.Unlock()
    
    	if len(ps.subs) != 2 || ps.NumSubscribers(MaskAll) != 2 || ps.Subscribers() != 2 {
    		t.Fatalf("expected 2 subscribers")
    	}
    }
    
    func TestNumSubscribersMask(t *testing.T) {
    	ps := New[Maskable, Mask](2)
    	ch1 := make(chan Maskable, 1)
    	ch2 := make(chan Maskable, 1)
    	doneCh := make(chan struct{})
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

        CacheBuilder<?, ?> expected =
            CacheBuilder.newBuilder()
                .initialCapacity(10)
                .maximumSize(20)
                .concurrencyLevel(30)
                .weakKeys()
                .weakValues()
                .expireAfterAccess(10L, MINUTES)
                .expireAfterWrite(1L, HOURS);
        assertCacheBuilderEquivalence(expected, CacheBuilder.from(spec));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  5. cmd/config-encrypted_test.go

    			if err != nil && test.success {
    				t.Errorf("Expected success, saw failure %v", err)
    			}
    			if err == nil && !test.success {
    				t.Error("Expected failure, saw success")
    			}
    			if test.success {
    				if !bytes.Equal(ddata, data) {
    					t.Errorf("Expected %s, got %s", string(data), string(ddata))
    				}
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. internal/http/check_port_test.go

    		switch {
    		case testCase.expectedErr == nil:
    			if err != nil {
    				t.Fatalf("error: expected = <nil>, got = %v", err)
    			}
    		case err == nil:
    			t.Fatalf("error: expected = %v, got = <nil>", testCase.expectedErr)
    		case testCase.expectedErr.Error() != err.Error():
    			t.Fatalf("error: expected = %v, got = %v", testCase.expectedErr, err)
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 03 21:12:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

            .build()
        val call = client.newCall(request)
        assertFailsWith<IOException> {
          call.execute()
        }.also { expected ->
          when (expected) {
            is SSLHandshakeException -> {
              // On Android, the handshake fails before the certificate pinner runs.
              assertThat(expected.message!!).contains("Could not validate certificate")
            }
            is SSLPeerUnverifiedException -> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  8. schema/index_test.go

    				{Field: &schema.Field{Name: "FieldH2"}},
    			},
    		},
    	}, indices)
    }
    
    func CheckIndices(t *testing.T, expected, actual map[string]schema.Index) {
    	for k, ei := range expected {
    		t.Run(k, func(t *testing.T) {
    			ai, ok := actual[k]
    			if !ok {
    				t.Errorf("expected index %q but actual missing", k)
    				return
    			}
    			tests.AssertObjEqual(t, ai, ei, "Name", "Class", "Type", "Where", "Comment", "Option")
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sun Feb 04 07:49:19 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/dependencies/index.md

    But because **FastAPI** is based on the Python standards, including `Annotated`, you can use this trick in your code. 😎
    
    ///
    
    The dependencies will keep working as expected, and the **best part** is that the **type information will be preserved**, which means that your editor will be able to keep providing you with **autocompletion**, **inline errors**, etc. The same for other tools like `mypy`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 11:18:17 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/PredicatesTest.java

          Predicate<? super @Nullable Integer> expected, Predicate<? super @Nullable Integer> actual) {
        assertEvalsLike(expected, actual, 0);
        assertEvalsLike(expected, actual, 1);
        PredicatesTest.<@Nullable Integer>assertEvalsLike(expected, actual, null);
      }
    
      private static <T extends @Nullable Object> void assertEvalsLike(
          Predicate<? super T> expected, Predicate<? super T> actual, T input) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
Back to top