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

Method test_1D_array

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

Source from the content-addressed store, hash-verified

605 assert_raises(ValueError, vsplit, a, 2)
606
607 def test_1D_array(self):
608 a = np.array([1, 2, 3, 4])
609 try:
610 vsplit(a, 2)
611 assert_(0)
612 except ValueError:
613 pass
614
615 def test_2D_array(self):
616 a = np.array([[1, 2, 3, 4],

Callers

nothing calls this directly

Calls 2

vsplitFunction · 0.90
assert_Function · 0.90

Tested by

no test coverage detected