()
| 135 | |
| 136 | |
| 137 | def test_json_dict_get_int_index(): |
| 138 | input = _json_table( |
| 139 | data=[ |
| 140 | {"a": 1}, |
| 141 | ] |
| 142 | ) |
| 143 | |
| 144 | result = input.select(result=pw.this.data.get(1)) |
| 145 | |
| 146 | assert_table_equality( |
| 147 | T( |
| 148 | """ |
| 149 | | result |
| 150 | 1 | |
| 151 | """ |
| 152 | ).update_types(result=Optional[pw.Json]), |
| 153 | result, |
| 154 | ) |
| 155 | |
| 156 | |
| 157 | def test_json_array_get_str_index(): |
nothing calls this directly
no test coverage detected