MCPcopy Index your code
hub / github.com/numpy/numpy / test_index_split_low_bound

Method test_index_split_low_bound

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

Source from the content-addressed store, hash-verified

464 compare_results(res, desired)
465
466 def test_index_split_low_bound(self):
467 a = np.arange(10)
468 indices = [0, 5, 7]
469 res = array_split(a, indices, axis=-1)
470 desired = [np.array([]), np.arange(0, 5), np.arange(5, 7),
471 np.arange(7, 10)]
472 compare_results(res, desired)
473
474 def test_index_split_high_bound(self):
475 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