MCPcopy Index your code
hub / github.com/python/cpython / test_ndarray_fortran

Method test_ndarray_fortran

Lib/test/test_buffer.py:1367–1371  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1365 lst=items[::step])
1366
1367 def test_ndarray_fortran(self):
1368 items = [1,2,3,4,5,6,7,8,9,10,11,12]
1369 ex = ndarray(items, shape=(3, 4), strides=(1, 3))
1370 nd = ndarray(ex, getbuf=PyBUF_F_CONTIGUOUS|PyBUF_FORMAT)
1371 self.assertEqual(nd.tolist(), farray(items, (3, 4)))
1372
1373 def test_ndarray_multidim(self):
1374 for ndim in range(5):

Callers

nothing calls this directly

Calls 2

farrayFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected