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

Function test_splice_no_args

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

Source from the content-addressed store, hash-verified

447
448
449def test_splice_no_args():
450 items = [1, 2, 3]
451 result = [None]
452 pm.eval("(result, arr) => {result[0] = arr.splice()}")(result, items)
453 assert items == [1, 2, 3]
454 assert result[0] == []
455
456
457def test_splice_one_arg():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected