Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for randomLowSurrogate (0.28 sec)

  1. 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())
            });
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  2. 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())
            });
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  3. android/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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
  4. 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
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 25.3K bytes
    - Viewed (0)
Back to top