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

Method test_equal_split

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

Source from the content-addressed store, hash-verified

486 # equal split. Only test for this case.
487
488 def test_equal_split(self):
489 a = np.arange(10)
490 res = split(a, 2)
491 desired = [np.arange(5), np.arange(5, 10)]
492 compare_results(res, desired)
493
494 def test_unequal_split(self):
495 a = np.arange(10)

Callers

nothing calls this directly

Calls 2

splitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected