import quadpy


def test_optimize_t2():
    d = {
        "name": "test",
        "domain": "T2",
        "degree": 2,
        "data": {"s2": [[0.33336839947], [0.1669753349]]},
    }
    out, _, _ = quadpy.optimize(d)

    assert abs(out["s2"][0][0] - 1 / 3) < 1.0e-12
    assert abs(out["s2"][1][0] - 1 / 6) < 1.0e-12

@@ -130,18 +130,21 @@
 ata%22: %7B%22
-s2
+d3_aa
 %22: %5B%5B0.3
@@ -236,18 +236,21 @@
 bs(out%5B%22
-s2
+d3_aa
 %22%5D%5B0%5D%5B0%5D
@@ -293,10 +293,13 @@
 ut%5B%22
-s2
+d3_aa
 %22%5D%5B1

test fix