MCPcopy
hub / github.com/numpy/numpy / test_0D_array

Method test_0D_array

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

Source from the content-addressed store, hash-verified

200 assert_raises(ValueError, vstack, ())
201
202 def test_0D_array(self):
203 a = array(1)
204 b = array(2)
205 res = vstack([a, b])
206 desired = array([[1], [2]])
207 assert_array_equal(res, desired)
208
209 def test_1D_array(self):
210 a = array([1])

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
vstackFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected