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

Method test_2D_array

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

Source from the content-addressed store, hash-verified

584 pass
585
586 def test_2D_array(self):
587 a = np.array([[1, 2, 3, 4],
588 [1, 2, 3, 4]])
589 res = vsplit(a, 2)
590 desired = [np.array([[1, 2, 3, 4]]), np.array([[1, 2, 3, 4]])]
591 compare_results(res, desired)
592
593
594class TestDsplit:

Callers

nothing calls this directly

Calls 2

vsplitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected