(Poly)
| 93 | |
| 94 | |
| 95 | def test_identity(Poly): |
| 96 | d = Poly.domain + random((2,))*.25 |
| 97 | w = Poly.window + random((2,))*.25 |
| 98 | x = np.linspace(d[0], d[1], 11) |
| 99 | p = Poly.identity(domain=d, window=w) |
| 100 | assert_equal(p.domain, d) |
| 101 | assert_equal(p.window, w) |
| 102 | assert_almost_equal(p(x), x) |
| 103 | |
| 104 | |
| 105 | def test_basis(Poly): |
nothing calls this directly
no test coverage detected