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

Function test_push_list

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

Source from the content-addressed store, hash-verified

186
187
188def test_push_list():
189 items = [1, 2, 3]
190 result = [None]
191 pm.eval("(result, arr) => {result[0] = arr.push([4,5])}")(result, items)
192 assert items == [1, 2, 3, [4, 5]]
193 assert result[0] == 4
194
195# shift
196

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected