Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 1,199 for expectGet (0.05 sec)

  1. cmd/erasure-sets_test.go

    1. t.Errorf("Test case %d: Expected \"%v\" but failed \"%v\"", i+1, testCase.sipHash, sipHashElement)
    2. }
    3. }
    4.  
    5. if sipHashElement := hashKey("SIPMOD", "This will fail", -1, testUUID); sipHashElement != -1 {
    6. t.Errorf("Test: Expected \"-1\" but got \"%v\"", sipHashElement)
    7. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 12 07:21:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/LongMathTest.java

    1. assertEquals(
    2. /*expected=*/ LongMath.sqrt(Long.MAX_VALUE, FLOOR),
    3. /*actual=*/ LongMath.FLOOR_SQRT_MAX_LONG);
    4. }
    5.  
    6. @GwtIncompatible // TODO
    7. public void testConstantsFactorials() {
    8. long expected = 1;
    9. for (int i = 0; i < LongMath.factorials.length; i++, expected *= i) {
    10. assertEquals(expected, LongMath.factorials[i]);
    11. }
    12. assertThrows(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  3. internal/http/server_test.go

    1. })
    2. }
    3. if server == nil {
    4. t.Fatalf("Case %v: server: expected: <non-nil>, got: <nil>", (i + 1))
    5. } else if !reflect.DeepEqual(server.Addrs, testCase.addrs) {
    6. t.Fatalf("Case %v: server.Addrs: expected: %v, got: %v", (i + 1), testCase.addrs, server.Addrs)
    7. }
    8.  
    9. if testCase.certFn == nil {
    10. if server.TLSConfig != nil {
    11. t.Fatalf("Case %v: server.TLSConfig: expected: <nil>, got: %v", (i + 1), server.TLSConfig)
    12. }
    13. } else {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 18:42:47 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. internal/event/rules_test.go

    1. result := testCase.rules.Clone()
    2.  
    3. if !reflect.DeepEqual(result, testCase.rules) {
    4. t.Fatalf("test %v: result: expected: %v, got: %v", i+1, testCase.rules, result)
    5. }
    6.  
    7. result.Add(NewPattern(testCase.prefix, ""), testCase.targetID)
    8. if reflect.DeepEqual(result, testCase.rules) {
    9. t.Fatalf("test %v: result: expected: not equal, got: equal", i+1)
    10. }
    11. }
    12. }
    13.  
    14. func TestRulesUnion(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 8.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/VerifyTest.java

    1. VerifyException expected = assertThrows(VerifyException.class, () -> verify(false, "message"));
    2. assertThat(expected).hasMessageThat().isEqualTo("message");
    3. }
    4.  
    5. public void testVerify_complexMessage_success() {
    6. verify(true, "%s", IGNORE_ME);
    7. }
    8.  
    9. public void testVerify_complexMessage_failure() {
    10. VerifyException expected = assertThrows(VerifyException.class, () -> verify(false, FORMAT, 5));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

    1. .add("field1", 1)
    2. .addValue("value1")
    3. .add("field2", "value2");
    4. final String expected = "TestClass{field1=1, value1, field2=value2}";
    5.  
    6. assertEquals(expected, helper.toString());
    7. // Call toString again
    8. assertEquals(expected, helper.toString());
    9.  
    10. // Make sure the cached value is reset when we modify the helper at all
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 21:19:18 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  7. cmd/httprange_test.go

    1. }
    2. continue
    3. }
    4. h, err := rs.ToHeader()
    5. if err != nil && !testCase.errExpected || err == nil && testCase.errExpected {
    6. t.Errorf("expected error with invalid range: %v", err)
    7. }
    8. if h != testCase.spec {
    9. t.Errorf("Case %d: translated to incorrect header: %s expected: %s",
    10. i, h, testCase.spec)
    11. }
    12. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun May 05 16:56:21 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/CharSourceTester.java

    1. assertEquals(expected.isEmpty(), source.isEmpty());
    2. }
    3.  
    4. public void testLength() throws IOException {
    5. assertEquals(expected.length(), source.length());
    6. }
    7.  
    8. public void testLengthIfKnown() throws IOException {
    9. Optional<Long> lengthIfKnown = source.lengthIfKnown();
    10. if (lengthIfKnown.isPresent()) {
    11. assertEquals(expected.length(), (long) lengthIfKnown.get());
    12. }
    13. }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. guava-testlib/test/com/google/common/testing/GcFinalizationTest.java

    1. try {
    2. final CountDownLatch latch = new CountDownLatch(1);
    3. RuntimeException expected =
    4. assertThrows(RuntimeException.class, () -> GcFinalization.await(latch));
    5. assertWrapsInterruptedException(expected);
    6. } finally {
    7. interruptenator.shutdown();
    8. Thread.interrupted();
    9. }
    10. }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/ThrowablesTest.java

    1. }
    2.  
    3. @J2ktIncompatible
    4. @GwtIncompatible // propagate
    5. public void testPropagate_noneDeclared_checked() {
    6. RuntimeException expected =
    7. assertThrows(RuntimeException.class, () -> propagate(new SomeCheckedException()));
    8. assertThat(expected).hasCauseThat().isInstanceOf(SomeCheckedException.class);
    9. }
    10.  
    11. @GwtIncompatible // throwIfInstanceOf
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top