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

Function test_unshift_one_arg

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

Source from the content-addressed store, hash-verified

222
223
224def test_unshift_one_arg():
225 items = [1, 2, 3]
226 result = [None]
227 pm.eval("(result, arr) => {result[0] = arr.unshift(6)}")(result, items)
228 assert items == [6, 1, 2, 3]
229 assert result[0] == 4
230
231
232def test_unshift_two_args():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected