MCPcopy
hub / github.com/numpy/numpy / test_r2array

Method test_r2array

numpy/_core/tests/test_shape_base.py:107–112  ·  view source on GitHub ↗

Test to make sure equivalent Travis O's r2array function

(self)

Source from the content-addressed store, hash-verified

105 assert_array_equal(res, desired)
106
107 def test_r2array(self):
108 """ Test to make sure equivalent Travis O's r2array function
109 """
110 assert_(atleast_2d(3).shape == (1, 1))
111 assert_(atleast_2d([3j, 1]).shape == (1, 2))
112 assert_(atleast_2d([[[3, 1], [4, 5]], [[3, 5], [1, 2]]]).shape == (2, 2, 2))
113
114
115class TestAtleast3d:

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
atleast_2dFunction · 0.90

Tested by

no test coverage detected