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

Function test_pop_ignore_extra_args

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

Source from the content-addressed store, hash-verified

85
86
87def test_pop_ignore_extra_args():
88 items = [1, 2, 3]
89 result = [None]
90 pm.eval("(result, arr) => {result[0] = arr.pop(1)}")(result, items)
91 assert items == [1, 2]
92 assert result[0] == 3
93
94# join
95

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected