MCPcopy Create free account
hub / github.com/numpy/numpy / test_array_size

Method test_array_size

numpy/f2py/tests/test_crackfortran.py:213–220  ·  view source on GitHub ↗
(self, dimspec)

Source from the content-addressed store, hash-verified

211
212 @pytest.mark.parametrize("dimspec", all_dimspecs)
213 def test_array_size(self, dimspec):
214
215 count = self.all_dimspecs.index(dimspec)
216 get_arr_size = getattr(self.module, f"get_arr_size_{count}")
217
218 for n in [1, 2, 3, 4, 5]:
219 sz, a = get_arr_size(n)
220 assert a.size == sz
221
222 @pytest.mark.parametrize("dimspec", all_dimspecs)
223 def test_inv_array_size(self, dimspec):

Callers

nothing calls this directly

Calls 1

indexMethod · 0.45

Tested by

no test coverage detected