MCPcopy
hub / github.com/numpy/numpy / test_r1array

Method test_r1array

numpy/_core/tests/test_shape_base.py:67–73  ·  view source on GitHub ↗

Test to make sure equivalent Travis O's r1array function

(self)

Source from the content-addressed store, hash-verified

65 assert_array_equal(res, desired)
66
67 def test_r1array(self):
68 """ Test to make sure equivalent Travis O's r1array function
69 """
70 assert_(atleast_1d(3).shape == (1,))
71 assert_(atleast_1d(3j).shape == (1,))
72 assert_(atleast_1d(3.0).shape == (1,))
73 assert_(atleast_1d([[2, 3], [4, 5]]).shape == (2, 2))
74
75
76class TestAtleast2d:

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
atleast_1dFunction · 0.90

Tested by

no test coverage detected