Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for incorrect (0.29 sec)

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

      public void testEntrySet_hashCode_size0() {
        assertEquals(
            "multiset.entrySet() has incorrect hash code", 0, getMultiset().entrySet().hashCode());
      }
    
      @CollectionSize.Require(ONE)
      public void testEntrySet_hashCode_size1() {
        assertEquals(
            "multiset.entrySet() has incorrect hash code",
            1 ^ e0().hashCode(),
            getMultiset().entrySet().hashCode());
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java

      public void testEntrySet_hashCode_size0() {
        assertEquals(
            "multiset.entrySet() has incorrect hash code", 0, getMultiset().entrySet().hashCode());
      }
    
      @CollectionSize.Require(ONE)
      public void testEntrySet_hashCode_size1() {
        assertEquals(
            "multiset.entrySet() has incorrect hash code",
            1 ^ e0().hashCode(),
            getMultiset().entrySet().hashCode());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionToStringTester.java

      public void testToString_sizeSeveral() {
        String expected = Helpers.copyToList(getOrderedElements()).toString();
        assertEquals("collection.toString() incorrect", expected, collection.toString());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      public void testToString_null() {
        initCollectionWithNullElement();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

              expectEnclose = true;
              break;
            }
          }
    
          assertEquals(
              rangeSet + " was incorrect on encloses(" + query + ")",
              expectEnclose,
              rangeSet.encloses(query));
          assertEquals(
              rangeSet + " was incorrect on enclosesAll([" + query + "])",
              expectEnclose,
              rangeSet.enclosesAll(ImmutableList.of(query)));
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 24.3K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/CollectionToStringTester.java

      public void testToString_sizeSeveral() {
        String expected = Helpers.copyToList(getOrderedElements()).toString();
        assertEquals("collection.toString() incorrect", expected, collection.toString());
      }
    
      @CollectionSize.Require(absent = ZERO)
      @CollectionFeature.Require(ALLOWS_NULL_VALUES)
      public void testToString_null() {
        initCollectionWithNullElement();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/Hashing.java

       *
       * <p>The C++ equivalent is the MurmurHash3_x86_32 function (Murmur3A), which however does not
       * have the bug.
       *
       * @deprecated This implementation produces incorrect hash values from the {@link
       *     HashFunction#hashString} method if the string contains non-BMP characters. Use {@link
       *     #murmur3_32_fixed(int)} instead.
       */
      @Deprecated
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

        assertTrue(
            "non-empty multiset.entrySet() iterator.hasNext() returned false", iterator.hasNext());
        assertEquals(
            "multiset.entrySet() iterator.next() returned incorrect entry",
            Multisets.immutableEntry(e0(), 1),
            iterator.next());
        assertFalse(
            "size 1 multiset.entrySet() iterator.hasNext() returned true after next()",
            iterator.hasNext());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 9.6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

      public void testSetCountConditional_negativeOldCount_addUnsupported() {
        try {
          assertSetCountNegativeOldCount();
        } catch (UnsupportedOperationException tolerated) {
        }
      }
    
      // Incorrect expected present count.
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSetCountConditional_oldCountTooLarge() {
        assertFalse(
            "setCount() with a too-large oldCount should return false",
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultisetSetCountConditionallyTester.java

      public void testSetCountConditional_negativeOldCount_addUnsupported() {
        try {
          assertSetCountNegativeOldCount();
        } catch (UnsupportedOperationException tolerated) {
        }
      }
    
      // Incorrect expected present count.
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSetCountConditional_oldCountTooLarge() {
        assertFalse(
            "setCount() with a too-large oldCount should return false",
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 21 15:08:35 GMT 2022
    - 3.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/FunctionsTest.java

        assertEquals("correct", f.apply(new Object()));
        assertEquals("correct", f.apply(null));
    
        Function<@Nullable Object, @Nullable String> g = Functions.constant(null);
        assertEquals(null, g.apply(2));
        assertEquals(null, g.apply(null));
    
        new EqualsTester()
            .addEqualityGroup(f, Functions.constant("correct"))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 16K bytes
    - Viewed (0)
Back to top