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

Function test_array_no_default_ctor

tests/test_stl.py:58–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57
58def test_array_no_default_ctor():
59 lst = m.NoDefaultCtorArray(3)
60 assert [e.val for e in lst.arr] == [13, 23]
61 lst.arr = m.NoDefaultCtorArray(4).arr
62 assert [e.val for e in lst.arr] == [14, 24]
63
64
65def test_valarray(doc):

Callers

nothing calls this directly

Calls 1

NoDefaultCtorArrayMethod · 0.80

Tested by

no test coverage detected