(self)
| 45 | x = np.linspace(-1, 1, 100) |
| 46 | |
| 47 | def test_legadd(self): |
| 48 | for i in range(5): |
| 49 | for j in range(5): |
| 50 | msg = f"At i={i}, j={j}" |
| 51 | tgt = np.zeros(max(i, j) + 1) |
| 52 | tgt[i] += 1 |
| 53 | tgt[j] += 1 |
| 54 | res = leg.legadd([0] * i + [1], [0] * j + [1]) |
| 55 | assert_equal(trim(res), trim(tgt), err_msg=msg) |
| 56 | |
| 57 | def test_legsub(self): |
| 58 | for i in range(5): |
nothing calls this directly
no test coverage detected