def test_poly_second(x, a0, a1, a2, expected):
    assert simple_math.poly_second(x, a0, a1, a2) == expected
示例#2
0
def test_poly_second():
    assert simple_math.poly_second(2, 5, 1, 2) == 15
def test_poly_second():
    assert simple_math.poly_second(1, 2, 3, 4) == 9
    assert simple_math.poly_second(2, 2, 3, 4) == 24
示例#4
0
def test_second():
    assert simple_math.poly_second(6, 1, 1, 3) == 115
示例#5
0
def test_poly_second():
    assert sm.poly_second(-2, 4, 4, 1) == 0
def test_poly_second(a3, a0, a1, a2):
    assert sm.poly_second(a3, a0, a1, a2) == solution
def test_simple_math_poly_second():
    assert simple_math.poly_second(2, 6, 5, 8) == 48