Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,190 for expectEq (0.25 sec)

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

      /* The names of the expected method that tests null checks. */
      private static final ImmutableList<String> NULL_TEST_METHOD_NAMES =
          ImmutableList.of(
              "testNulls", "testNull",
              "testNullPointers", "testNullPointer",
              "testNullPointerExceptions", "testNullPointerException");
    
      /* The names of the expected method that tests serializable. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. internal/store/queuestore_test.go

    	if len(keys) != 10 {
    		t.Fatalf("List() Expected: 10, got %d", len(keys))
    	}
    
    	// re-open
    	store, err = setUpQueueStore(queueDir, 10)
    	if err != nil {
    		t.Fatal("Failed to create a queue store ", err)
    	}
    	keys = store.List()
    
    	if len(keys) != 10 {
    		t.Fatalf("List() Expected: 10, got %d", len(keys))
    	}
    	if len(keys) != store.Len() {
    		t.Fatalf("List() Expected: 10, got %d", len(keys))
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

      public void testTimeoutOnGetWorksCorrectly() throws InterruptedException, ExecutionException {
    
        // The task thread waits for the latch, so we expect a timeout here.
        try {
          future.get(20, MILLISECONDS);
          fail("Should have timed out trying to get the value.");
        } catch (TimeoutException expected) {
        } finally {
          latch.countDown();
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 18:30:30 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. internal/mountinfo/mountinfo_linux_test.go

    	{
    		absPaths := []string{"."}
    		if err = checkCrossDevice(absPaths, mountsPath); err == nil {
    			t.Fatal("Expected to fail for non absolute paths")
    		}
    		expectedErrMsg := fmt.Sprintf("Invalid argument, path (%s) is expected to be absolute", ".")
    		if err.Error() != expectedErrMsg {
    			t.Fatalf("Expected %s, got %s", expectedErrMsg, err)
    		}
    	}
    	// Success case, where path doesn't have any mounts.
    	{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. tests/query_test.go

    	if res.Nickname != user.Name {
    		t.Errorf("Expected res.Nickname to be %s, but got %s", user.Name, res.Nickname)
    	}
    	if res.Name != "" {
    		t.Errorf("Expected res.Name to be empty, but got %s", res.Name)
    	}
    	if res.Age != user.Age {
    		t.Errorf("Expected res.Age to be %d, but got %d", user.Age, res.Age)
    	}
    }
    
    func TestPluckWithSelect(t *testing.T) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        IncomparableValueException expected =
            assertThrows(IncomparableValueException.class, () -> c.compare(0, 0));
        assertEquals(0, expected.value);
        reserializeAndAssert(c);
      }
    
      public void testExplicit_one() {
        Comparator<Integer> c = Ordering.explicit(0);
        assertEquals(0, c.compare(0, 0));
        IncomparableValueException expected =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/OrderingTest.java

        IncomparableValueException expected =
            assertThrows(IncomparableValueException.class, () -> c.compare(0, 0));
        assertEquals(0, expected.value);
        reserializeAndAssert(c);
      }
    
      public void testExplicit_one() {
        Comparator<Integer> c = Ordering.explicit(0);
        assertEquals(0, c.compare(0, 0));
        IncomparableValueException expected =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  8. internal/config/bool-flag_test.go

    		err := (&flag).UnmarshalJSON(testCase.data)
    		if !testCase.expectedErr && err != nil {
    			t.Fatalf("error: expected = <nil>, got = %v", err)
    		}
    		if testCase.expectedErr && err == nil {
    			t.Fatalf("error: expected error, got = <nil>")
    		}
    		if err == nil && testCase.expectedResult != flag {
    			t.Fatalf("result: expected: %v, got: %v", testCase.expectedResult, flag)
    		}
    	}
    }
    
    // Test ParseBoolFlag()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt

        }.also { expected ->
          assertThat(expected.message).isEqualTo("Code must be in range [1000,5000): 98724976")
        }
      }
    
      @Test fun closeReservedThrows() {
        assertFailsWith<IllegalArgumentException> {
          clientWriter.writeClose(1005, "Hello".encodeUtf8())
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Code 1005 is reserved and may not be used.")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. internal/auth/credentials_test.go

    		if err != nil {
    			if testCase.expectedErr == nil {
    				t.Fatalf("test %v: error: expected = <nil>, got = %v", i+1, err)
    			}
    			if testCase.expectedErr.Error() != err.Error() {
    				t.Fatalf("test %v: error: expected = %v, got = %v", i+1, testCase.expectedErr, err)
    			}
    		} else {
    			if testCase.expectedErr != nil {
    				t.Fatalf("test %v: error: expected = %v, got = <nil>", i+1, testCase.expectedErr)
    			}
    			if !cred.IsValid() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 01 21:09:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top