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

Function test_unshift_zero_arg

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

Source from the content-addressed store, hash-verified

214
215
216def test_unshift_zero_arg():
217 items = [1, 2, 3]
218 result = [None]
219 pm.eval("(result, arr) => {result[0] = arr.unshift()}")(result, items)
220 assert items == [1, 2, 3]
221 assert result[0] == 3
222
223
224def test_unshift_one_arg():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected