MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / test_shift_empty

Function test_shift_empty

tests/python/test_arrays.py:206–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204
205
206def test_shift_empty():
207 items = []
208 result = [None]
209 pm.eval("(result, arr) => {result[0] = arr.shift()}")(result, items)
210 assert items == []
211 assert result[0] is None
212
213# unshift
214

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected