()
| 69 | |
| 70 | |
| 71 | def test_pop(): |
| 72 | items = [1, 2, 3] |
| 73 | result = [None] |
| 74 | pm.eval("(result, arr) => {result[0] = arr.pop()}")(result, items) |
| 75 | assert items == [1, 2] |
| 76 | assert result[0] == 3 |
| 77 | |
| 78 | |
| 79 | def test_pop_empty(): |
nothing calls this directly
no outgoing calls
no test coverage detected