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

Function test_splice_one_arg

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

Source from the content-addressed store, hash-verified

455
456
457def test_splice_one_arg():
458 items = [1, 2, 3]
459 result = [None]
460 pm.eval("(result, arr) => {result[0] = arr.splice(1)}")(result, items)
461 assert items == [1]
462 assert result[0] == [2, 3]
463
464
465def test_splice_one_arg_negative():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected