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

Function test_pop_empty

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

Source from the content-addressed store, hash-verified

77
78
79def test_pop_empty():
80 items = []
81 result = [None]
82 pm.eval("(result, arr) => {result[0] = arr.pop()}")(result, items)
83 assert items == []
84 assert result[0] is None
85
86
87def test_pop_ignore_extra_args():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected