MCPcopy Index your code
hub / github.com/numpy/numpy / test_0D_array

Method test_0D_array

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

Source from the content-addressed store, hash-verified

75
76class TestAtleast2d:
77 def test_0D_array(self):
78 a = array(1)
79 b = array(2)
80 res = [atleast_2d(a), atleast_2d(b)]
81 desired = [array([[1]]), array([[2]])]
82 assert_array_equal(res, desired)
83
84 def test_1D_array(self):
85 a = array([1, 2])

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
atleast_2dFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected