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