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

Method test_r1array

numpy/core/tests/test_shape_base.py:46–52  ·  view source on GitHub ↗

Test to make sure equivalent Travis O's r1array function

(self)

Source from the content-addressed store, hash-verified

44 assert_array_equal(res, desired)
45
46 def test_r1array(self):
47 """ Test to make sure equivalent Travis O's r1array function
48 """
49 assert_(atleast_1d(3).shape == (1,))
50 assert_(atleast_1d(3j).shape == (1,))
51 assert_(atleast_1d(3.0).shape == (1,))
52 assert_(atleast_1d([[2, 3], [4, 5]]).shape == (2, 2))
53
54
55class TestAtleast2d:

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
atleast_1dFunction · 0.90

Tested by

no test coverage detected