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

Method test_3D_array

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

Source from the content-addressed store, hash-verified

75 assert_array_equal(res, desired)
76
77 def test_3D_array(self):
78 a = array([[1, 2], [1, 2]])
79 b = array([[2, 3], [2, 3]])
80 a = array([a, a])
81 b = array([b, b])
82 res = [atleast_2d(a), atleast_2d(b)]
83 desired = [a, b]
84 assert_array_equal(res, desired)
85
86 def test_r2array(self):
87 """ 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