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

Method test_index_split_low_bound

numpy/lib/tests/test_shape_base.py:437–443  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

435 compare_results(res, desired)
436
437 def test_index_split_low_bound(self):
438 a = np.arange(10)
439 indices = [0, 5, 7]
440 res = array_split(a, indices, axis=-1)
441 desired = [np.array([]), np.arange(0, 5), np.arange(5, 7),
442 np.arange(7, 10)]
443 compare_results(res, desired)
444
445 def test_index_split_high_bound(self):
446 a = np.arange(10)

Callers

nothing calls this directly

Calls 2

array_splitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected