Example #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
Example #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
Example #3
0
def test_calculaMediaFinal7():
    assert calculaMediaFinal(10, 11) == None
Example #4
0
def test_calculaMediaFinal6():
    assert calculaMediaFinal(-1, 10) == None
Example #5
0
def test_calculaMediaFinal():
    assert calculaMediaFinal(10, 10) == 10.0
Example #6
0
def test_calculaMediaFinal5():
    assert calculaMediaFinal(9, 6) == 7.8
Example #7
0
def test_calculaMediaFinal4():
    assert calculaMediaFinal(3, 8) == 5
Example #8
0
def test_calculaMediaFinal3():
    assert calculaMediaFinal(6, 7) == 6.4
Example #9
0
def test_calculaMediaFinal2():
    assert calculaMediaFinal(7, 7) == 7
Example #10
0
def test_calculaMediaFinal1():
    assert calculaMediaFinal(5, 5) == 5