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

Function test_at

tests/test_numpy_array.py:161–166  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

159
160
161def test_at(arr):
162 assert m.at_t(arr, 0, 2) == 3
163 assert m.at_t(arr, 1, 0) == 4
164
165 assert all(m.mutate_at_t(arr, 0, 2).ravel() == [1, 2, 4, 4, 5, 6])
166 assert all(m.mutate_at_t(arr, 1, 0).ravel() == [1, 2, 4, 5, 5, 6])
167
168
169def test_mutate_readonly(arr):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected