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

Method test_0D_array

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

Source from the content-addressed store, hash-verified

179 assert_raises(ValueError, vstack, ())
180
181 def test_0D_array(self):
182 a = array(1)
183 b = array(2)
184 res = vstack([a, b])
185 desired = array([[1], [2]])
186 assert_array_equal(res, desired)
187
188 def test_1D_array(self):
189 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