()
| 281 | |
| 282 | |
| 283 | def test_concat_object_element(): |
| 284 | d = {"a": 1} |
| 285 | items = [1, 2, d] |
| 286 | result = [None] |
| 287 | pm.eval("(result, arr) => {result[0] = arr.concat()}")(result, items) |
| 288 | assert items == [1, 2, d] |
| 289 | assert result[0] == [1, 2, d] |
| 290 | assert items is not result[0] |
| 291 | assert d is items[2] |
| 292 | assert d is result[0][2] |
| 293 | |
| 294 | # slice |
| 295 |
nothing calls this directly
no outgoing calls
no test coverage detected