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

Function test_slice_start_zero

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

Source from the content-addressed store, hash-verified

312
313
314def test_slice_start_zero():
315 items = [1, 2, 3]
316 result = [None]
317 pm.eval("(result, arr) => {result[0] = arr.slice(0,2)}")(result, items)
318 assert items == [1, 2, 3]
319 assert result[0] == [1, 2]
320
321
322def test_slice_stop_length():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected