Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testRoundTripHashCodeUsingFromString (0.27 sec)

  1. guava-tests/test/com/google/common/hash/HashCodeTest.java

        // Technically not a violation of the equals/hashCode contract, but...?
        assertEquals(hashCodeA.hashCode(), hashCodeB.hashCode());
      }
    
      public void testRoundTripHashCodeUsingFromString() {
        HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII);
        HashCode hash2 = HashCode.fromString(hash1.toString());
        assertEquals(hash1, hash2);
      }
    
      public void testRoundTrip() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        // Technically not a violation of the equals/hashCode contract, but...?
        assertEquals(hashCodeA.hashCode(), hashCodeB.hashCode());
      }
    
      public void testRoundTripHashCodeUsingFromString() {
        HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII);
        HashCode hash2 = HashCode.fromString(hash1.toString());
        assertEquals(hash1, hash2);
      }
    
      public void testRoundTrip() {
    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