Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IsInt (0.02 sec)

  1. tests/test_tutorial/test_sql_databases/test_tutorial002.py

            assert response.json() == snapshot(
                [
                    {"name": "Dead Pond", "age": 30, "id": IsInt()},
                    {"name": "Spider-Boy", "age": 18, "id": IsInt()},
                    {"name": "Rusty-Man", "age": None, "id": IsInt()},
                ]
            )
    
            response = client.get("/heroes/?offset=1&limit=1")
            assert response.status_code == 200, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_sql_databases/test_tutorial001.py

                    {
                        "name": "Dead Pond",
                        "age": 30,
                        "id": IsInt(),
                        "secret_name": "Dive Wilson",
                    },
                    {
                        "name": "Spider-Boy",
                        "age": 18,
                        "id": IsInt(),
                        "secret_name": "Pedro Parqueador",
                    },
                    {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    </p>
    
    <pre>
    v := x  // x is evaluated exactly once
    if v == nil {
    	i := v                                 // type of i is type of x (interface{})
    	printString("x is nil")
    } else if i, isInt := v.(int); isInt {
    	printInt(i)                            // type of i is int
    } else if i, isFloat64 := v.(float64); isFloat64 {
    	printFloat64(i)                        // type of i is float64
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  4. doc/go_spec.html

    </p>
    
    <pre>
    v := x  // x is evaluated exactly once
    if v == nil {
    	i := v                                 // type of i is type of x (interface{})
    	printString("x is nil")
    } else if i, isInt := v.(int); isInt {
    	printInt(i)                            // type of i is int
    } else if i, isFloat64 := v.(float64); isFloat64 {
    	printFloat64(i)                        // type of i is float64
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (0)
Back to top