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

Function test_recursive_map

tests/test_stl_binders.py:395–400  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393
394
395def test_recursive_map():
396 recursive_map = m.RecursiveMap()
397 recursive_map[100] = m.RecursiveMap()
398 recursive_map[100][101] = m.RecursiveMap()
399 recursive_map[100][102] = m.RecursiveMap()
400 assert list(recursive_map[100].keys()) == [101, 102]
401
402
403def test_user_vector_like():

Callers

nothing calls this directly

Calls 1

listClass · 0.85

Tested by

no test coverage detected