Test to make sure equivalent Travis O's r1array function
(self)
| 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 | |
| 76 | class TestAtleast2d: |
nothing calls this directly
no test coverage detected