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

Function test_map_string_double_const

tests/test_stl_binders.py:198–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196
197
198def test_map_string_double_const():
199 mc = m.MapStringDoubleConst()
200 mc["a"] = 10
201 mc["b"] = 20.5
202 assert str(mc) == "MapStringDoubleConst{a: 10, b: 20.5}"
203
204 umc = m.UnorderedMapStringDoubleConst()
205 umc["a"] = 11
206 umc["b"] = 21.5
207
208 str(umc)
209
210
211def test_noncopyable_containers():

Callers

nothing calls this directly

Calls 1

strClass · 0.85

Tested by

no test coverage detected