(self)
| 43 | class TestLogspace: |
| 44 | |
| 45 | def test_basic(self): |
| 46 | y = logspace(0, 6) |
| 47 | assert_(len(y) == 50) |
| 48 | y = logspace(0, 6, num=100) |
| 49 | assert_(y[-1] == 10 ** 6) |
| 50 | y = logspace(0, 6, endpoint=False) |
| 51 | assert_(y[-1] < 10 ** 6) |
| 52 | y = logspace(0, 6, num=7) |
| 53 | assert_array_equal(y, [1, 10, 100, 1e3, 1e4, 1e5, 1e6]) |
| 54 | |
| 55 | def test_start_stop_array(self): |
| 56 | start = array([0., 1.]) |
nothing calls this directly
no test coverage detected