- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for binarySearchOddSizedRange (0.09 seconds)
-
okhttp/src/jvmTest/kotlin/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]) })
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)