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