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

Function test_push_two_args

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

Source from the content-addressed store, hash-verified

178
179
180def test_push_two_args():
181 items = [1, 2, 3]
182 result = [None]
183 pm.eval("(result, arr) => {result[0] = arr.push(4,false)}")(result, items)
184 assert items == [1, 2, 3, 4, False]
185 assert result[0] == 5
186
187
188def test_push_list():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected