Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for binarySearchOddSizedRange (0.17 sec)

  1. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

        assertEquals(-6, binarySearch(0, 6) { index -> 10.compareTo(table[index]) })
        assertEquals(-7, binarySearch(0, 6) { index -> 12.compareTo(table[index]) })
      }
    
      @Test fun binarySearchOddSizedRange() {
        val table = listOf(1, 3, 5, 7, 9)
    
        // Search for matches.
        assertEquals(0, binarySearch(0, 5) { index -> 1.compareTo(table[index]) })
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top