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

Method test_2D_array2

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

Source from the content-addressed store, hash-verified

200 assert_array_equal(res, desired)
201
202 def test_2D_array2(self):
203 a = array([1, 2])
204 b = array([1, 2])
205 res = vstack([a, b])
206 desired = array([[1, 2], [1, 2]])
207 assert_array_equal(res, desired)
208
209 def test_generator(self):
210 with pytest.raises(TypeError, match="arrays to stack must be"):

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
vstackFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected