()
| 303 | |
| 304 | |
| 305 | def test_slice_copy(): |
| 306 | items = [1, 2, 3] |
| 307 | result = [None] |
| 308 | pm.eval("(result, arr) => {result[0] = arr.slice(0,3)}")(result, items) |
| 309 | assert items == [1, 2, 3] |
| 310 | assert result[0] == [1, 2, 3] |
| 311 | assert items is not result[0] |
| 312 | |
| 313 | |
| 314 | def test_slice_start_zero(): |
nothing calls this directly
no outgoing calls
no test coverage detected