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

Function test_slice_copy

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

Source from the content-addressed store, hash-verified

303
304
305def test_slice_copy():
306 items = [1, 2, 3]
307 result = [None]
308 pm.eval("(result, arr) => {result[0] = arr.slice(0,3)}")(result, items)
309 assert items == [1, 2, 3]
310 assert result[0] == [1, 2, 3]
311 assert items is not result[0]
312
313
314def test_slice_start_zero():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected