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

Method test_index_split_high_bound

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

Source from the content-addressed store, hash-verified

443 compare_results(res, desired)
444
445 def test_index_split_high_bound(self):
446 a = np.arange(10)
447 indices = [0, 5, 7, 10, 12]
448 res = array_split(a, indices, axis=-1)
449 desired = [np.array([]), np.arange(0, 5), np.arange(5, 7),
450 np.arange(7, 10), np.array([]), np.array([])]
451 compare_results(res, desired)
452
453
454class TestSplit:

Callers

nothing calls this directly

Calls 2

array_splitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected