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

Method test_index_split_high_bound

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

Source from the content-addressed store, hash-verified

472 compare_results(res, desired)
473
474 def test_index_split_high_bound(self):
475 a = np.arange(10)
476 indices = [0, 5, 7, 10, 12]
477 res = array_split(a, indices, axis=-1)
478 desired = [np.array([]), np.arange(0, 5), np.arange(5, 7),
479 np.arange(7, 10), np.array([]), np.array([])]
480 compare_results(res, desired)
481
482
483class TestSplit:

Callers

nothing calls this directly

Calls 2

array_splitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected