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

Function test_unshift_two_args

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

Source from the content-addressed store, hash-verified

230
231
232def test_unshift_two_args():
233 items = [1, 2, 3]
234 result = [None]
235 pm.eval("(result, arr) => {result[0] = arr.unshift(6,7)}")(result, items)
236 assert items == [6, 7, 1, 2, 3]
237 assert result[0] == 5
238
239# concat
240

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected