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

Method test_0D_array

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

Source from the content-addressed store, hash-verified

131 assert_raises(ValueError, hstack, ())
132
133 def test_0D_array(self):
134 a = array(1)
135 b = array(2)
136 res = hstack([a, b])
137 desired = array([1, 2])
138 assert_array_equal(res, desired)
139
140 def test_1D_array(self):
141 a = array([1])

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
hstackFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected