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

Method test_0D_array

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

Source from the content-addressed store, hash-verified

14
15class TestAtleast1d:
16 def test_0D_array(self):
17 a = array(1)
18 b = array(2)
19 res = [atleast_1d(a), atleast_1d(b)]
20 desired = [array([1]), array([2])]
21 assert_array_equal(res, desired)
22
23 def test_1D_array(self):
24 a = array([1, 2])

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
atleast_1dFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected