(self)
| 101 | assert_equal(trim(res), trim(tgt), err_msg=msg) |
| 102 | |
| 103 | def test_legpow(self): |
| 104 | for i in range(5): |
| 105 | for j in range(5): |
| 106 | msg = f"At i={i}, j={j}" |
| 107 | c = np.arange(i + 1) |
| 108 | tgt = reduce(leg.legmul, [c]*j, np.array([1])) |
| 109 | res = leg.legpow(c, j) |
| 110 | assert_equal(trim(res), trim(tgt), err_msg=msg) |
| 111 | |
| 112 | |
| 113 | class TestEvaluation: |
nothing calls this directly
no test coverage detected