Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for binarySearchEmptyRange (0.12 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/idn/IdnaMappingTableTest.kt

        // Search for misses.
        assertEquals(-1, binarySearch(0, 1) { index -> 0.compareTo(table[index]) })
        assertEquals(-2, binarySearch(0, 1) { index -> 2.compareTo(table[index]) })
      }
    
      @Test fun binarySearchEmptyRange() {
        assertEquals(-1, binarySearch(0, 0) { error("unexpected call") })
      }
    
      /** Confirm the compact table has the exact same behavior as the plain table. */
      @Test fun comparePlainAndCompactTables() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top