()
| 196 | |
| 197 | |
| 198 | def test_shift(): |
| 199 | items = [1, 2, 3] |
| 200 | result = [None] |
| 201 | pm.eval("(result, arr) => {result[0] = arr.shift()}")(result, items) |
| 202 | assert items == [2, 3] |
| 203 | assert result[0] == 1 |
| 204 | |
| 205 | |
| 206 | def test_shift_empty(): |
nothing calls this directly
no outgoing calls
no test coverage detected