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

Function test_slice

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

Source from the content-addressed store, hash-verified

295
296
297def test_slice():
298 items = [1, 2, 3]
299 result = [None]
300 pm.eval("(result, arr) => {result[0] = arr.slice(1,2)}")(result, items)
301 assert items == [1, 2, 3]
302 assert result[0] == [2]
303
304
305def test_slice_copy():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected