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

Method test_2D_array

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

Source from the content-addressed store, hash-verified

557 compare_results(res, desired)
558
559 def test_2D_array(self):
560 a = np.array([[1, 2, 3, 4],
561 [1, 2, 3, 4]])
562 res = hsplit(a, 2)
563 desired = [np.array([[1, 2], [1, 2]]), np.array([[3, 4], [3, 4]])]
564 compare_results(res, desired)
565
566
567class TestVsplit:

Callers

nothing calls this directly

Calls 2

hsplitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected