Ejemplo n.º 1
0
def test_big():
    num_list = [1000000000]

    observed = calc_mean(num_list)
    expected = 1000000000

    assert observed == expected
Ejemplo n.º 2
0
def test_int():
    num_list = [1, 2, 3, 4, 5]

    observed = calc_mean(num_list)
    expected = 3

    assert observed == expected
Ejemplo n.º 3
0
def test_double():
    num_list = [1, 2, 3, 4]

    observed = calc_mean(num_list)
    expected = 2.5

    assert observed == expected