Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,526 for expected (0.05 sec)

  1. guava-tests/test/com/google/common/collect/MoreCollectorsTest.java

      }
    
      public void testOnlyElementMultiple() {
        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> Stream.of(1, 2).collect(onlyElement()));
        assertThat(expected.getMessage()).contains("1, 2");
      }
    
      public void testOnlyElementMany() {
        IllegalArgumentException expected =
            assertThrows(
                IllegalArgumentException.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. cmd/endpoint_test.go

    			}
    
    			switch {
    			case test.expectedErr == nil:
    				if err != nil {
    					t.Errorf("error: expected = <nil>, got = %v", err)
    				}
    			case err == nil:
    				t.Errorf("error: expected = %v, got = <nil>", test.expectedErr)
    			case test.expectedErr.Error() != err.Error():
    				t.Errorf("error: expected = %v, got = %v", test.expectedErr, err)
    			}
    
    			if err == nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jan 13 07:53:03 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

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

    			err := listTags(context.Background(), client, &out)
    			if tc.error == "" && err != nil {
    				t.Fatalf("expected no error, got %v", err)
    			}
    			if tc.error != "" {
    				if err == nil {
    					t.Fatalf("expected error to include \"%s\" but got none", tc.error)
    				}
    				if !strings.Contains(err.Error(), tc.error) {
    					t.Fatalf("expected \"%s\" in error, got %v", tc.error, err)
    				}
    			}
    
    			commandOutput := out.String()
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. cmd/erasure-sets_test.go

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

                  + "expected = "
                  + expected
                  + ", actual = "
                  + actual);
        }
      }
    
      public static void assertContentsInOrder(Iterable<?> actual, Object... expected) {
        assertEqualInOrder(asList(expected), actual);
      }
    
      public static void assertEqualIgnoringOrder(Iterable<?> expected, Iterable<?> actual) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        int i = 0;
        while (expectedIterator.hasNext()) {
          Object expected = expectedIterator.next();
    
          assertTrue(
              "index " + i + " expected <" + expected + "., actual is exhausted",
              actualIterator.hasNext());
    
          Object actual = actualIterator.next();
          assertEquals("index " + i, expected, actual);
          i++;
        }
        if (actualIterator.hasNext()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

        for (long value : TEST_LONGS) {
          BigInteger expected =
              (value >= 0)
                  ? BigInteger.valueOf(value)
                  : BigInteger.valueOf(value).add(BigInteger.ZERO.setBit(64));
          assertWithMessage(UnsignedLongs.toString(value))
              .that(UnsignedLong.fromLongBits(value).bigIntegerValue())
              .isEqualTo(expected);
        }
      }
    
      public void testValueOfLong() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

        }
    
        try {
          assertContentsInOrder(list, "a", "c", "b");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
          assertContentsInOrder(list, "a", "B", "c");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
      }
    
      public void testAssertContains() {
        List<?> list = asList("a", "b");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/collect/testing/HelpersTest.java

        }
    
        try {
          assertContentsInOrder(list, "a", "c", "b");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
    
        try {
          assertContentsInOrder(list, "a", "B", "c");
          throw new Error();
        } catch (AssertionFailedError expected) {
        }
      }
    
      public void testAssertContains() {
        List<?> list = asList("a", "b");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top