MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_ndarray_fortran

Method test_ndarray_fortran

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

Source from the content-addressed store, hash-verified

1353 lst=items[::step])
1354
1355 def test_ndarray_fortran(self):
1356 items = [1,2,3,4,5,6,7,8,9,10,11,12]
1357 ex = ndarray(items, shape=(3, 4), strides=(1, 3))
1358 nd = ndarray(ex, getbuf=PyBUF_F_CONTIGUOUS|PyBUF_FORMAT)
1359 self.assertEqual(nd.tolist(), farray(items, (3, 4)))
1360
1361 def test_ndarray_multidim(self):
1362 for ndim in range(5):

Callers

nothing calls this directly

Calls 3

farrayFunction · 0.85
assertEqualMethod · 0.45
tolistMethod · 0.45

Tested by

no test coverage detected