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

Method test_0D_array

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

Source from the content-addressed store, hash-verified

114
115class TestAtleast3d:
116 def test_0D_array(self):
117 a = array(1)
118 b = array(2)
119 res = [atleast_3d(a), atleast_3d(b)]
120 desired = [array([[[1]]]), array([[[2]]])]
121 assert_array_equal(res, desired)
122
123 def test_1D_array(self):
124 a = array([1, 2])

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
atleast_3dFunction · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected