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

Function test_recursive_vector

tests/test_stl_binders.py:385–392  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

383
384
385def test_recursive_vector():
386 recursive_vector = m.RecursiveVector()
387 recursive_vector.append(m.RecursiveVector())
388 recursive_vector[0].append(m.RecursiveVector())
389 recursive_vector[0].append(m.RecursiveVector())
390 # Can't use len() since test_stl_binders.cpp does not include stl.h,
391 # so the necessary conversion is missing
392 assert recursive_vector[0].count(m.RecursiveVector()) == 2
393
394
395def test_recursive_map():

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected