Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for canonicalizeInetAddressNotMapped (0.2 sec)

  1. okhttp/src/test/java/okhttp3/internal/HostnamesTest.kt

     * limitations under the License.
     */
    package okhttp3.internal
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import kotlin.test.Test
    
    class HostnamesTest {
      @Test
      fun canonicalizeInetAddressNotMapped() {
        val addressA = decodeIpv6("::1")!!
        assertThat(canonicalizeInetAddress(addressA)).isEqualTo(addressA)
    
        val addressB = byteArrayOf(127, 0, 0, 1)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 30 06:23:33 GMT 2024
    - 5.1K bytes
    - Viewed (0)
Back to top