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

Method test_3D_array

numpy/core/tests/test_shape_base.py:116–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114 assert_array_equal(res, desired)
115
116 def test_3D_array(self):
117 a = array([[1, 2], [1, 2]])
118 b = array([[2, 3], [2, 3]])
119 a = array([a, a])
120 b = array([b, b])
121 res = [atleast_3d(a), atleast_3d(b)]
122 desired = [a, b]
123 assert_array_equal(res, desired)
124
125
126class TestHstack:

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
atleast_3dFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected