MCPcopy
hub / github.com/numpy/numpy / test_2D_array2

Method test_2D_array2

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

Source from the content-addressed store, hash-verified

221 assert_array_equal(res, desired)
222
223 def test_2D_array2(self):
224 a = array([1, 2])
225 b = array([1, 2])
226 res = vstack([a, b])
227 desired = array([[1, 2], [1, 2]])
228 assert_array_equal(res, desired)
229
230 def test_generator(self):
231 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