(self)
| 66 | assert_equal(trim(res), trim(tgt), err_msg=msg) |
| 67 | |
| 68 | def test_polysub(self): |
| 69 | for i in range(5): |
| 70 | for j in range(5): |
| 71 | msg = f"At i={i}, j={j}" |
| 72 | tgt = np.zeros(max(i, j) + 1) |
| 73 | tgt[i] += 1 |
| 74 | tgt[j] -= 1 |
| 75 | res = poly.polysub([0]*i + [1], [0]*j + [1]) |
| 76 | assert_equal(trim(res), trim(tgt), err_msg=msg) |
| 77 | |
| 78 | def test_polymulx(self): |
| 79 | assert_equal(poly.polymulx([0]), [0]) |
nothing calls this directly
no test coverage detected