def test_max_a_list_with_3_should_give_():

    assert_equal(max([3]), 3)
def test_max_a_list_with_9_3_5_6_should_give_9():

    assert_equal(max([9, 3, 5, 6]), 9)
def test_max_a_list_with_5_3_should_give_5():

    assert_equal(max([5, 3]), 5)
def test_max_takes_a_non_empty_list_as_argument():

    max([2])
def test_max_a_list_with_3_7_7_should_give_7():

    assert_equal(max([3, 5, 7]), 7)
def test_empty_list_should_give_0():

    assert_equal(max([]), 0)
def test_max_takes_a_list_as_argument():

    max(10)
Exemplo n.º 8
0
def test_max_a_list_with_5_3_should_give_5():

    assert_equal(max([5, 3]), 5)
Exemplo n.º 9
0
def test_max_a_list_with_3_should_give_():

    assert_equal(max([3]), 3)
Exemplo n.º 10
0
def test_max_a_list_with_9_3_5_6_should_give_9():

    assert_equal(max([9, 3, 5, 6]), 9)
Exemplo n.º 11
0
def test_max_a_list_with_3_7_7_should_give_7():

    assert_equal(max([3, 5, 7]), 7)
Exemplo n.º 12
0
def test_empty_list_should_give_0():

    assert_equal(max([]), 0)
Exemplo n.º 13
0
def test_max_takes_a_list_as_argument():

    max()
Exemplo n.º 14
0
def test_max_takes_a_non_empty_list_as_argument():

    max([2])