Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ test_pop
Function
test_pop
extra_tests/snippets/builtin_list.py:124–126 ·
view source on GitHub ↗
(lst, idx, value, new_lst)
Source
from the content-addressed store, hash-verified
122
123
124
def
test_pop(lst, idx, value, new_lst):
125
assert lst.pop(idx) == value
126
assert lst == new_lst
127
128
129
test_pop([0, 1, 2], -1, 2, [0, 1])
Callers
1
builtin_list.py
File · 0.85
Calls
1
pop
Method · 0.45
Tested by
no test coverage detected