Пример #1
0
def test_calculaMediaFinal():
    assert calculaMediaFinal(10, 10) == 10
    assert calculaMediaFinal(10, 0) == 6
    assert calculaMediaFinal(6, 10) == 7.6
    assert calculaMediaFinal(10, 6) == 8.4
    assert calculaMediaFinal(0, 10) == 4
    assert calculaMediaFinal(8, 4) == 6.4
    assert calculaMediaFinal(5, 5) == 5
    assert calculaMediaFinal(5, 9) == 6.6
    assert calculaMediaFinal(3, 7) == 4.6
    assert calculaMediaFinal(3, 10) == 5.8
Пример #2
0
def test_calculaMediaFinal():
    assert calculaMediaFinal(10, 10) == 10
    assert calculaMediaFinal(10, 0) == 6
    assert calculaMediaFinal(6, 0) == 7.6
    assert calculaMediaFinal(10, 4) == 8.4
    assert calculaMediaFinal(0, 10) == 4
    assert calculaMediaFinal(8, 4) == 6.4
    assert calculaMediaFinal(5, 5) == 5
    assert calculaMediaFinal(11, 11) == None
    assert calculaMediaFinal(-1, 0) == None
Пример #3
0
def test_calculaMediaFinal7():
    assert calculaMediaFinal(10, 11) == None
Пример #4
0
def test_calculaMediaFinal6():
    assert calculaMediaFinal(-1, 10) == None
Пример #5
0
def test_calculaMediaFinal():
    assert calculaMediaFinal(10, 10) == 10.0
Пример #6
0
def test_calculaMediaFinal5():
    assert calculaMediaFinal(9, 6) == 7.8
Пример #7
0
def test_calculaMediaFinal4():
    assert calculaMediaFinal(3, 8) == 5
Пример #8
0
def test_calculaMediaFinal3():
    assert calculaMediaFinal(6, 7) == 6.4
Пример #9
0
def test_calculaMediaFinal2():
    assert calculaMediaFinal(7, 7) == 7
Пример #10
0
def test_calculaMediaFinal1():
    assert calculaMediaFinal(5, 5) == 5