Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Distributive-Network/PythonMonkey
/ test_slice
Function
test_slice
tests/python/test_lists.py:1016–1019 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1014
1015
1016
def
test_slice():
1017
a = pm.eval(
"([1,2,3,4,5,6])"
)
1018
b = a[1:5]
1019
assert b == [2, 3, 4, 5]
1020
1021
1022
def
test_slice_negative_start():
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected