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

Function test_data

tests/test_numpy_array.py:145–150  ·  view source on GitHub ↗
(arr, args, ret)

Source from the content-addressed store, hash-verified

143 ],
144)
145def test_data(arr, args, ret):
146 from sys import byteorder
147
148 assert all(m.data_t(arr, *args) == ret)
149 assert all(m.data(arr, *args)[(0 if byteorder == "little" else 1) :: 2] == ret)
150 assert all(m.data(arr, *args)[(1 if byteorder == "little" else 0) :: 2] == 0)
151
152
153@pytest.mark.parametrize("dim", [0, 1, 3])

Callers

nothing calls this directly

Calls 1

dataMethod · 0.45

Tested by

no test coverage detected