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

Function test_shift

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

Source from the content-addressed store, hash-verified

196
197
198def 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
206def test_shift_empty():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected