

def test_basic_degree_3():
    d = 3
    knots = range(5)
    splines = bspline_basis_set(d, knots, x)
    b0 = Piecewise((((x ** 3) / 6), Interval(0, 1, False, True).contains(x)), ((((Rational(2, 3) - (2 * x)) + (2 * (x ** 2))) - ((x ** 3) / 2)), Interval(1, 2, False, True).contains(x)), ((((Rational((- 22), 3) + (10 * x)) - (4 * (x ** 2))) + ((x ** 3) / 2)), Interval(2, 3, False, True).contains(x)), ((((Rational(32, 3) - (8 * x)) + (2 * (x ** 2))) - ((x ** 3) / 6)), Interval(3, 4).contains(x)), (0, True))
    assert (splines[0] == d)

dataset/ETHPy150Open sympy/sympy/sympy/functions/special/tests/test_bsplines.py test_basic_degree_3/VarMisuse@247/264 `b0`->`d`