Пример #1
0
def test_solve_equation():
    assert solve_equation(1, 1, 1) == {}
    assert solve_equation(2, 4, -2.5) == {-2.5, 0.5}
    assert solve_equation(0, 1, 1) == {-1}
Пример #2
0
def test_solve_equation3():
    assert [0, -9] == solve_equation(1, 9, 0)
Пример #3
0
def test_solve_equation4():
    assert [1, 3] == solve_equation(2, -8, 6)
Пример #4
0
def test_solve_equation1():
    assert [] == solve_equation(2, 0, 8)
Пример #5
0
def test_solve_equation2():
    assert [3, -3] == solve_equation(1, 0, -9)
Пример #6
0
def test_solve_equation4():
    assert solve_equation(2, -3, 1) == [2.0, 0.0]
Пример #7
0
def test_solve_equation():
    assert [0] == solve_equation(2, 0, 0)
Пример #8
0
def test_solve_equation3():
    assert solve_equation(1, -6, 5) == [5.0, 1.0]
Пример #9
0
def test_solve_equation1():
    assert solve_equation(1, 0, 0) == [0.0, 0.0]
Пример #10
0
def test_solve_equation():
    assert solve_equation(2, 3, 1) == -0.5
Пример #11
0
def test_solve_equation_2():
    x1, x2 = solve_equation(1, -3, -4)
    assert_equation(x1, x2, 4)
    assert_equation(x1, x2, -1)
Пример #12
0
def test_solve_equation():
    x1, x2 = solve_equation(1, 4, 4)
    assert_equation(x1, x2, -2)