(self)
| 56 | class TestArithmetic: |
| 57 | |
| 58 | def test_polyadd(self): |
| 59 | for i in range(5): |
| 60 | for j in range(5): |
| 61 | msg = f"At i={i}, j={j}" |
| 62 | tgt = np.zeros(max(i, j) + 1) |
| 63 | tgt[i] += 1 |
| 64 | tgt[j] += 1 |
| 65 | res = poly.polyadd([0]*i + [1], [0]*j + [1]) |
| 66 | assert_equal(trim(res), trim(tgt), err_msg=msg) |
| 67 | |
| 68 | def test_polysub(self): |
| 69 | for i in range(5): |
nothing calls this directly
no test coverage detected