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

Function test_push_no_arg

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

Source from the content-addressed store, hash-verified

170
171
172def test_push_no_arg():
173 items = [1, 2, 3]
174 result = [None]
175 pm.eval("(result, arr) => {result[0] = arr.push()}")(result, items)
176 assert items == [1, 2, 3,]
177 assert result[0] == 3
178
179
180def test_push_two_args():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected