(self)
| 63 | class TestArithmetic: |
| 64 | |
| 65 | def test_chebadd(self): |
| 66 | for i in range(5): |
| 67 | for j in range(5): |
| 68 | msg = f"At i={i}, j={j}" |
| 69 | tgt = np.zeros(max(i, j) + 1) |
| 70 | tgt[i] += 1 |
| 71 | tgt[j] += 1 |
| 72 | res = cheb.chebadd([0]*i + [1], [0]*j + [1]) |
| 73 | assert_equal(trim(res), trim(tgt), err_msg=msg) |
| 74 | |
| 75 | def test_chebsub(self): |
| 76 | for i in range(5): |
nothing calls this directly
no test coverage detected