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

Function test_initializer_list

tests/test_numpy_array.py:481–485  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

479
480
481def test_initializer_list():
482 assert m.array_initializer_list1().shape == (1,)
483 assert m.array_initializer_list2().shape == (1, 2)
484 assert m.array_initializer_list3().shape == (1, 2, 3)
485 assert m.array_initializer_list4().shape == (1, 2, 3, 4)
486
487
488def test_array_resize():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected