MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_vector_custom

Function test_vector_custom

tests/test_stl_binders.py:140–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138
139
140def test_vector_custom():
141 v_a = m.VectorEl()
142 v_a.append(m.El(1))
143 v_a.append(m.El(2))
144 assert str(v_a) == "VectorEl[El{1}, El{2}]"
145
146 vv_a = m.VectorVectorEl()
147 vv_a.append(v_a)
148 vv_b = vv_a[0]
149 assert str(vv_b) == "VectorEl[El{1}, El{2}]"
150
151
152def test_map_string_double():

Callers

nothing calls this directly

Calls 3

strClass · 0.85
ElMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected