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

Method test_3D_array

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

Source from the content-addressed store, hash-verified

35 assert_array_equal(res, desired)
36
37 def test_3D_array(self):
38 a = array([[1, 2], [1, 2]])
39 b = array([[2, 3], [2, 3]])
40 a = array([a, a])
41 b = array([b, b])
42 res = [atleast_1d(a), atleast_1d(b)]
43 desired = [a, b]
44 assert_array_equal(res, desired)
45
46 def test_r1array(self):
47 """ Test to make sure equivalent Travis O's r1array function

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