(self)
| 320 | class TestLinspace: |
| 321 | |
| 322 | def test_basic(self): |
| 323 | y = linspace(0, 10) |
| 324 | assert_(len(y) == 50) |
| 325 | y = linspace(2, 10, num=100) |
| 326 | assert_(y[-1] == 10) |
| 327 | y = linspace(2, 10, endpoint=False) |
| 328 | assert_(y[-1] < 10) |
| 329 | assert_raises(ValueError, linspace, 0, 10, num=-1) |
| 330 | |
| 331 | def test_corner(self): |
| 332 | y = list(linspace(0, 1, 1)) |
nothing calls this directly
no test coverage detected