(Poly)
| 99 | |
| 100 | |
| 101 | def test_identity(Poly): |
| 102 | d = Poly.domain + random((2,)) * .25 |
| 103 | w = Poly.window + random((2,)) * .25 |
| 104 | x = np.linspace(d[0], d[1], 11) |
| 105 | p = Poly.identity(domain=d, window=w) |
| 106 | assert_equal(p.domain, d) |
| 107 | assert_equal(p.window, w) |
| 108 | assert_almost_equal(p(x), x) |
| 109 | |
| 110 | |
| 111 | def test_basis(Poly): |
nothing calls this directly
no test coverage detected
searching dependent graphs…