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

Method test_1D_array

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

Source from the content-addressed store, hash-verified

576 assert_raises(ValueError, vsplit, a, 2)
577
578 def test_1D_array(self):
579 a = np.array([1, 2, 3, 4])
580 try:
581 vsplit(a, 2)
582 assert_(0)
583 except ValueError:
584 pass
585
586 def test_2D_array(self):
587 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