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

Function test_slice_start_negative

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

Source from the content-addressed store, hash-verified

336
337
338def test_slice_start_negative():
339 items = [1, 2, 3]
340 result = [None]
341 pm.eval("(result, arr) => {result[0] = arr.slice(-3,-1)}")(result, items)
342 assert result[0] == [1, 2]
343
344# indexOf
345

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected