Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for binarySearchEmptyRange (0.41 seconds)

  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() {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 8.9K bytes
    - Click Count (0)
Back to Top