예제 #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)