Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 342 for heslo (0.23 sec)

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

        assertThat(body.string()).isEqualTo("hello")
      }
    
      @Test
      fun stringBomUtf8() {
        val body = body("efbbbf68656c6c6f")
        assertThat(body.string()).isEqualTo("hello")
      }
    
      @Test
      fun stringBomUtf16Be() {
        val body = body("feff00680065006c006c006f")
        assertThat(body.string()).isEqualTo("hello")
      }
    
      @Test
      fun stringBomUtf16Le() {
        val body = body("fffe680065006c006c006f00")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  2. tests/test_router_redirect_slashes.py

        app = FastAPI()
        router = APIRouter()
    
        @router.get("/hello/")
        def hello_page() -> str:
            return "Hello, World!"
    
        app.include_router(router)
    
        client = TestClient(app)
    
        response = client.get("/hello/", follow_redirects=False)
        assert response.status_code == 200
    
        response = client.get("/hello", follow_redirects=False)
        assert response.status_code == 307
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jun 22 10:37:50 GMT 2023
    - 974 bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt

        val deflater = MessageDeflater(false)
        val deflated = deflater.deflate("Hello deflate!".encodeUtf8())
        assertThat(deflated.hex()).isEqualTo("f248cdc9c95748494dcb492c49550400")
      }
    
      @Test fun `inflate deflate`() {
        val deflater = MessageDeflater(false)
        val inflater = MessageInflater(false)
    
        val goldenValue = "Hello deflate!".repeat(100).encodeUtf8()
    
        val deflated = deflater.deflate(goldenValue)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

            ranges = data.ranges,
            mappings = data.mappings,
          )
      }
    
      @Test fun regularMappings() {
        assertThat("hello".map()).isEqualTo("hello")
        assertThat("hello-world".map()).isEqualTo("hello-world")
        assertThat("HELLO".map()).isEqualTo("hello")
        assertThat("Hello".map()).isEqualTo("hello")
    
        // These compound characters map their its components.
        assertThat("¼".map()).isEqualTo("1⁄4")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_websockets/test_tutorial003.py

            "/ws/5678"
        ) as connection_two:
            connection.send_text("Hello from 1234")
            data1 = connection.receive_text()
            assert data1 == "You wrote: Hello from 1234"
            data2 = connection_two.receive_text()
            client1_says = "Client #1234 says: Hello from 1234"
            assert data2 == client1_says
            data1 = connection.receive_text()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 29 09:26:07 GMT 2021
    - 872 bytes
    - Viewed (0)
  6. src/bytes/compare_test.go

    			a[j+1] = b[j+1]
    		}
    	}
    }
    
    func BenchmarkCompareBytesEqual(b *testing.B) {
    	b1 := []byte("Hello Gophers!")
    	b2 := []byte("Hello Gophers!")
    	for i := 0; i < b.N; i++ {
    		if Compare(b1, b2) != 0 {
    			b.Fatal("b1 != b2")
    		}
    	}
    }
    
    func BenchmarkCompareBytesToNil(b *testing.B) {
    	b1 := []byte("Hello Gophers!")
    	var b2 []byte
    	for i := 0; i < b.N; i++ {
    		if Compare(b1, b2) != 1 {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_testing_dependencies/test_tutorial001_an_py39.py

        from docs_src.dependency_testing.tutorial001_an_py39 import client
    
        response = client.get("/users/")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "message": "Hello Users!",
            "params": {"q": None, "skip": 5, "limit": 10},
        }
    
    
    @needs_py39
    def test_override_in_users_with_q():
        from docs_src.dependency_testing.tutorial001_an_py39 import client
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt

        serverWriter.writeMessageFrame(OPCODE_TEXT, "Hello".encodeUtf8())
        assertData("810548656c6c6f")
      }
    
      @Test fun serverCompressedTextMessage() {
        val serverWriter =
          WebSocketWriter(
            false,
            data,
            random,
            true,
            false,
            0L,
          )
        serverWriter.writeMessageFrame(OPCODE_TEXT, "Hello".encodeUtf8())
        assertData("c107f248cdc9c90700")
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_websockets/test_tutorial003_py39.py

            "/ws/5678"
        ) as connection_two:
            connection.send_text("Hello from 1234")
            data1 = connection.receive_text()
            assert data1 == "You wrote: Hello from 1234"
            data2 = connection_two.receive_text()
            client1_says = "Client #1234 says: Hello from 1234"
            assert data2 == client1_says
            data1 = connection.receive_text()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  10. docs_src/dependency_testing/tutorial001_an_py39.py

    
    @app.get("/items/")
    async def read_items(commons: Annotated[dict, Depends(common_parameters)]):
        return {"message": "Hello Items!", "params": commons}
    
    
    @app.get("/users/")
    async def read_users(commons: Annotated[dict, Depends(common_parameters)]):
        return {"message": "Hello Users!", "params": commons}
    
    
    client = TestClient(app)
    
    
    async def override_dependency(q: Union[str, None] = None):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 1.5K bytes
    - Viewed (0)
Back to top