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

Function test_slice_stop_length

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

Source from the content-addressed store, hash-verified

320
321
322def test_slice_stop_length():
323 items = [1, 2, 3]
324 result = [None]
325 pm.eval("(result, arr) => {result[0] = arr.slice(1,3)}")(result, items)
326 assert items == [1, 2, 3]
327 assert result[0] == [2, 3]
328
329
330def test_slice_stop_beyond_length():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected