Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ test_deque
Function
test_deque
tests/test_stl.py:32–38 ·
view source on GitHub ↗
std::deque <-> list
()
Source
from the content-addressed store, hash-verified
30
31
32
def
test_deque():
33
""
"std::deque <-> list"
""
34
lst = m.cast_deque()
35
assert lst == [1]
36
lst.append(2)
37
assert m.load_deque(lst)
38
assert m.load_deque(tuple(lst))
39
40
41
def
test_array(doc):
Callers
nothing calls this directly
Calls
2
tuple
Class · 0.85
append
Method · 0.45
Tested by
no test coverage detected