Exemple #1
0
def test_calculaMedia5():
    assert calculaMedia([10.0, 10.0, 9.0, 9.0, 8.0, 8.0, 7.0, 7.0, 6.0,
                         6.0]) == 8.0
Exemple #2
0
def test_calculaMedia4():
    assert calculaMedia([6.0, 6.0, 9.0, 6.0, 6.0, 7.0, 8.0, 8.0]) == 7.0
Exemple #3
0
def test_calculaMedia3():
    assert calculaMedia([9.0, 6.0, 6.0, 7.0]) == 7.0
Exemple #4
0
def test_calculaMedia2():
    assert calculaMedia([10.0, 6.0, 8.0]) == 8.0
Exemple #5
0
def test_calculaMedia1():
    assert calculaMedia([8.0]) == 8.0
Exemple #6
0
def test_calculaMedia():
    assert calculaMedia(10.0, 6.0, 8.0) == 8.0
    assert calculaMedia(9.0, 6.0, 6.9, 7.0) == 7.0
    assert calculaMedia(6.0, 6.0, 9.0, 6.0, 7.0, 8.0, 8.0) == 7.0
    assert calculaMedia(10.0, 10.0, 9.0, 8.0, 8.0, 7.0, 7.0, 6.0, 6.0) == 8.0