MCPcopy
hub / github.com/numpy/numpy / test_3D_array

Method test_3D_array

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

Source from the content-addressed store, hash-verified

96 assert_array_equal(res, desired)
97
98 def test_3D_array(self):
99 a = array([[1, 2], [1, 2]])
100 b = array([[2, 3], [2, 3]])
101 a = array([a, a])
102 b = array([b, b])
103 res = [atleast_2d(a), atleast_2d(b)]
104 desired = [a, b]
105 assert_array_equal(res, desired)
106
107 def test_r2array(self):
108 """ Test to make sure equivalent Travis O's r2array function

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