21 a = tableau.weight_matrix()
22 c = tableau.relative_time_step_sizes()
23 b = tableau.final_estimate_weights()
25 assert tableau.number_of_stages == order
26 assert len(a) == order
and all(len(row) == order
for row
in a)
27 assert len(b) == order
and len(c) == order
28 for k
in range(order):
29 assert all(a[k][j] == 0.0
for j
in range(k, order)),
"not explicit"
30 assert sum(a[k]) == pytest.approx(c[k])
31 assert sum(b) == pytest.approx(1.0)
34@pytest.mark.parametrize("order", [1, 2, 3, 4])