Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for randomLowSurrogate (0.21 sec)

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

        assertPutString(
            new char[] {
              HashTestUtils.randomLowSurrogate(new Random()),
              HashTestUtils.randomHighSurrogate(new Random())
            });
      }
    
      public void testPutStringWithHighLowSurrogate() {
        assertPutString(
            new char[] {
              HashTestUtils.randomHighSurrogate(new Random()),
              HashTestUtils.randomLowSurrogate(new Random())
            });
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashTestUtils.java

        for (int i = 0; i < chars.length; i++) {
          chars[i] = random.nextBoolean() ? randomLowSurrogate(random) : randomHighSurrogate(random);
        }
        String string = new String(chars);
        assertEquals(
            hashFunction.hashUnencodedChars(string),
            hashFunction.newHasher().putUnencodedChars(string).hash());
      }
    
      static char randomLowSurrogate(Random random) {
        return (char)
            (Character.MIN_LOW_SURROGATE
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top