MCPcopy
hub / github.com/numpy/numpy / test_3D_array

Method test_3D_array

numpy/_core/tests/test_shape_base.py:137–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

135 assert_array_equal(res, desired)
136
137 def test_3D_array(self):
138 a = array([[1, 2], [1, 2]])
139 b = array([[2, 3], [2, 3]])
140 a = array([a, a])
141 b = array([b, b])
142 res = [atleast_3d(a), atleast_3d(b)]
143 desired = [a, b]
144 assert_array_equal(res, desired)
145
146
147class 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