Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 1,199 for expectGet (0.06 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

    1. try {
    2. entrySet.add((Entry<K, V>) entryToAdd);
    3. fail("Expected UnsupportedOperationException or NullPointerException.");
    4. } catch (UnsupportedOperationException | NullPointerException e) {
    5. // Expected.
    6. }
    7. assertInvariants(map);
    8.  
    9. try {
    10. entrySet.addAll(singleton((Entry<K, V>) entryToAdd));
    11. fail("Expected UnsupportedOperationException or NullPointerException.");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

    1. TestHasher hasher = new TestHasher(); // byte order insignificant here
    2. byte[] expected = {1, 2, 3, 4, 5, 6, 7, 8};
    3. hasher.putByte((byte) 1);
    4. hasher.putBytes(new byte[] {2, 3, 4, 5, 6});
    5. hasher.putByte((byte) 7);
    6. hasher.putBytes(new byte[] {});
    7. hasher.putBytes(new byte[] {8});
    8. hasher.assertBytes(expected);
    9. }
    10.  
    11. public void testShort() {
    12. TestHasher hasher = new TestHasher();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_debug_test.cc

    1. CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    2.  
    3. ASSERT_EQ(2, TFE_TensorDebugInfoOnDeviceNumDims(debug_info));
    4. // Shape is the same for CPU tensors.
    5. EXPECT_EQ(3, TFE_TensorDebugInfoOnDeviceDim(debug_info, 0));
    6. EXPECT_EQ(2, TFE_TensorDebugInfoOnDeviceDim(debug_info, 1));
    7.  
    8. TFE_DeleteTensorDebugInfo(debug_info);
    9. TFE_DeleteTensorHandle(h);
    10. TFE_DeleteContext(ctx);
    11. TF_DeleteStatus(status);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Apr 06 22:10:09 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

    1. assertFailsWith<IOException> {
    2. client.newCall(request).execute()
    3. }.also { expected ->
    4. expected.assertSuppressed {
    5. val suppressed = it.single()
    6. assertThat(suppressed).isInstanceOf(IOException::class.java)
    7. assertThat(suppressed).isNotSameAs(expected)
    8. }
    9. }
    10. }
    11.  
    12. /** Confirm suppressed exceptions that occur after connecting are returned. */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. tests/embedded_struct_test.go

    1. t.Errorf("Expected to get Author name %v but got: %v", NewPost.Author.Name, hnPost.Author.Name)
    2. }
    3.  
    4. if !reflect.DeepEqual(NewPost.Author.Content, hnPost.Author.Content) {
    5. t.Errorf("Expected to get Author content %v but got: %v", NewPost.Author.Content, hnPost.Author.Content)
    6. }
    7.  
    8. if hnPost.Author.ContentPtr != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. internal/http/listener_test.go

    1. if !expectedListenErr {
    2. if listenErrs[i] != nil {
    3. t.Fatalf("Test %d:, listenErrs[%d] error: expected = <nil>, got = %v", testIdx+1, i, listenErrs[i])
    4. }
    5. } else if listenErrs[i] == nil {
    6. t.Fatalf("Test %d: listenErrs[%d]: expected = %v, got = <nil>", testIdx+1, i, expectedListenErr)
    7. }
    8. }
    9. if listener != nil {
    10. listener.Close()
    11. }
    12. }
    13. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  7. compat/maven-compat/src/test/java/org/apache/maven/artifact/transform/TransformationManagerTest.java

    1. "We expected the release transformation and got " + tms.get(0));
    2.  
    3. assertTrue(
    4. tms.get(1) instanceof LatestArtifactTransformation,
    5. "We expected the latest transformation and got " + tms.get(1));
    6.  
    7. assertTrue(
    8. tms.get(2) instanceof SnapshotTransformation,
    9. "We expected the snapshot transformation and got " + tms.get(2));
    10. }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/CacheLoadingTest.java

    1. ExecutionError expected = assertThrows(ExecutionError.class, () -> cache.get(new Object()));
    2. assertThat(expected).hasCauseThat().isSameInstanceAs(e);
    3. stats = cache.stats();
    4. assertEquals(1, stats.missCount());
    5. assertEquals(0, stats.loadSuccessCount());
    6. assertEquals(1, stats.loadExceptionCount());
    7. assertEquals(0, stats.hitCount());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/test/kotlin/okhttp3/OkHttpClientTestRuleTest.kt

    1. }
    2. }
    3. thread.start()
    4. thread.join()
    5.  
    6. assertFailsWith<AssertionError> {
    7. testRule.afterEach(extensionContext)
    8. }.also { expected ->
    9. assertThat(expected).hasMessage("uncaught exception thrown during test")
    10. assertThat(expected.cause!!).hasMessage("boom!")
    11. }
    12. }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

    1. public class MultisetSetCountConditionallyTester<E> extends AbstractMultisetSetCountTester<E> {
    2. @Override
    3. void setCountCheckReturnValue(E element, int count) {
    4. assertTrue(
    5. "setCount() with the correct expected present count should return true",
    6. setCount(element, count));
    7. }
    8.  
    9. @Override
    10. void setCountNoCheckReturnValue(E element, int count) {
    11. setCount(element, count);
    12. }
    13.  
    14. @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top