Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for expectedToString (0.43 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java

      }
    
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      public void testToString_formatting() {
        assertEquals(
            "map.toString() incorrect", expectedToString(getMap().entrySet()), getMap().toString());
      }
    
      private String expectedToString(Set<Entry<K, V>> entries) {
        Map<K, V> reference = new LinkedHashMap<>();
        for (Entry<K, V> entry : entries) {
          reference.put(entry.getKey(), entry.getValue());
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/testers/MapToStringTester.java

      }
    
      @CollectionFeature.Require(absent = NON_STANDARD_TOSTRING)
      public void testToString_formatting() {
        assertEquals(
            "map.toString() incorrect", expectedToString(getMap().entrySet()), getMap().toString());
      }
    
      private String expectedToString(Set<Entry<K, V>> entries) {
        Map<K, V> reference = new LinkedHashMap<>();
        for (Entry<K, V> entry : entries) {
          reference.put(entry.getKey(), entry.getValue());
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/HashCodeTest.java

        int expectedInt = 0x0000abcd;
        String expectedToString = "cdab0000";
    
        assertEquals(expectedInt, hashCode.asInt());
        assertEquals(expectedToString, hashCode.toString());
    
        bytes[0] = (byte) 0x00;
    
        assertEquals(expectedInt, hashCode.asInt());
        assertEquals(expectedToString, hashCode.toString());
      }
    
      public void testFromBytesNoCopy_noCopyOccurs() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        int expectedInt = 0x0000abcd;
        String expectedToString = "cdab0000";
    
        assertEquals(expectedInt, hashCode.asInt());
        assertEquals(expectedToString, hashCode.toString());
    
        bytes[0] = (byte) 0x00;
    
        assertEquals(expectedInt, hashCode.asInt());
        assertEquals(expectedToString, hashCode.toString());
      }
    
      public void testFromBytesNoCopy_noCopyOccurs() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top