예제 #1
0
def test_list1():
    assert (3 == count_evens([2, 1, 2, 3, 4]))
예제 #2
0
def test_list2():
    assert (3 == count_evens([2, 2, 0]))
예제 #3
0
def test_list2():
    assert (3 == count_evens([2, 2, 0]))
예제 #4
0
def test_list3():
    assert (0 == count_evens([1, 3, 5]))
예제 #5
0
def test_list1():
    assert (3 == count_evens([2, 1, 2, 3, 4]))
예제 #6
0
def test_list3():
    assert (0 == count_evens([1, 3, 5]))
예제 #7
0
def test_count_evens_c():
    assert count_evens([1, 3, 5]) == 0
예제 #8
0
def test_count_evens_b():
    assert count_evens([2, 2, 0]) == 3
예제 #9
0
def test_count_evens_a():
    assert count_evens([2, 1, 2, 3, 4]) == 3