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

Method test_2D_array

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

Source from the content-addressed store, hash-verified

613 pass
614
615 def test_2D_array(self):
616 a = np.array([[1, 2, 3, 4],
617 [1, 2, 3, 4]])
618 res = vsplit(a, 2)
619 desired = [np.array([[1, 2, 3, 4]]), np.array([[1, 2, 3, 4]])]
620 compare_results(res, desired)
621
622
623class TestDsplit:

Callers

nothing calls this directly

Calls 2

vsplitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected