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

Method test_equal_split

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

Source from the content-addressed store, hash-verified

457 # equal split. Only test for this case.
458
459 def test_equal_split(self):
460 a = np.arange(10)
461 res = split(a, 2)
462 desired = [np.arange(5), np.arange(5, 10)]
463 compare_results(res, desired)
464
465 def test_unequal_split(self):
466 a = np.arange(10)

Callers

nothing calls this directly

Calls 2

splitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected