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

Method test_1D_array

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

Source from the content-addressed store, hash-verified

551 pass
552
553 def test_1D_array(self):
554 a = np.array([1, 2, 3, 4])
555 res = hsplit(a, 2)
556 desired = [np.array([1, 2]), np.array([3, 4])]
557 compare_results(res, desired)
558
559 def test_2D_array(self):
560 a = np.array([[1, 2, 3, 4],

Callers

nothing calls this directly

Calls 2

hsplitFunction · 0.90
compare_resultsFunction · 0.85

Tested by

no test coverage detected