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

Method test_2D_array

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

Source from the content-addressed store, hash-verified

166 assert_array_equal(res, desired)
167
168 def test_2D_array(self):
169 a = array([[1], [2]])
170 b = array([[1], [2]])
171 res = hstack([a, b])
172 desired = array([[1, 1], [2, 2]])
173 assert_array_equal(res, desired)
174
175 def test_generator(self):
176 with pytest.raises(TypeError, match="arrays to stack must be"):

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
hstackFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected