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

Method test_2D_array

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

Source from the content-addressed store, hash-verified

586 compare_results(res, desired)
587
588 def test_2D_array(self):
589 a = np.array([[1, 2, 3, 4],
590 [1, 2, 3, 4]])
591 res = hsplit(a, 2)
592 desired = [np.array([[1, 2], [1, 2]]), np.array([[3, 4], [3, 4]])]
593 compare_results(res, desired)
594
595
596class TestVsplit:

Callers

nothing calls this directly

Calls 2

hsplitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected