MCPcopy 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
124def test_pop(lst, idx, value, new_lst):
125 assert lst.pop(idx) == value
126 assert lst == new_lst
127
128
129test_pop([0, 1, 2], -1, 2, [0, 1])

Callers 1

builtin_list.pyFile · 0.85

Calls 1

popMethod · 0.45

Tested by

no test coverage detected