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

Method test_2D_array

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

Source from the content-addressed store, hash-verified

634 assert_raises(ValueError, dsplit, a, 2)
635
636 def test_2D_array(self):
637 a = np.array([[1, 2, 3, 4],
638 [1, 2, 3, 4]])
639 try:
640 dsplit(a, 2)
641 assert_(0)
642 except ValueError:
643 pass
644
645 def test_3D_array(self):
646 a = np.array([[[1, 2, 3, 4],

Callers

nothing calls this directly

Calls 2

dsplitFunction · 0.90
assert_Function · 0.90

Tested by

no test coverage detected