MCPcopy 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
32def 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
41def test_array(doc):

Callers

nothing calls this directly

Calls 2

tupleClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected