Exemple #1
0
def test_countEvens_5():
    assert countEvens([1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, -2.0]) == 4
Exemple #2
0
def test_countEvens_4():
    assert countEvens([-1, 1, 3, 5, 7]) == 0
Exemple #3
0
def test_countEvens_2():
    assert countEvens([0, "2", "Four", 6]) == 2
Exemple #4
0
def test_countEvens_3():
    assert countEvens((0, 2, 4)) == 0
Exemple #5
0
def test_countEvens_1():
    assert countEvens([0, 2, 4]) == 3