Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WebPlatformToAsciiData (0.19 sec)

  1. okhttp/src/test/java/okhttp3/WebPlatformToAsciiData.kt

     *
     * Each test is a line of the file `toascii.json`.
     */
    @Serializable
    class WebPlatformToAsciiData {
      var input: String? = null
      var output: String? = null
      var comment: String? = null
    
      override fun toString() = "input=$input output=$output"
    
      companion object {
        fun load(): List<WebPlatformToAsciiData> {
          val path = okHttpRoot / "okhttp/src/test/resources/web-platform-test-toascii.json"
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/WebPlatformToAsciiTest.kt

          "xn--1ug.example",
          // OkHttp doesn't implement CheckJoiners.
          "\u200D.example",
          // OkHttp doesn't implement CheckBidi.
          "يa",
        )
    
      @Test
      fun test() {
        val list = WebPlatformToAsciiData.load()
        val failures = mutableListOf<Throwable>()
        for (entry in list) {
          var failure: Throwable? = null
          try {
            testToAscii(entry.input!!, entry.output, entry.comment)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
Back to top