コード例 #1
0
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
コード例 #3
0
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
コード例 #6
0
def test_poly_second(a3, a0, a1, a2):
    assert sm.poly_second(a3, a0, a1, a2) == solution
コード例 #7
0
def test_simple_math_poly_second():
    assert simple_math.poly_second(2, 6, 5, 8) == 48