Exemple #1
0
def test_sum():
    test_sum = Functions.find_sum([1, 2, 3, 4])
    assert test_sum == 10
Exemple #2
0
def test_sum_decimals():
    test_sum = Functions.find_sum([1, 2.5, 3.5, 4])
    assert test_sum == 11
Exemple #3
0
def test_sum_negative():
    test_sum = Functions.find_sum([-1, 2.5, 3.5, -4])
    assert test_sum == 1